main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / vijay
main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++; //num[2]=1; after compile time
printf("%d", num[i]);
}
}
output:- 1
//if you have R&D mode then send the your view .No doubt ,
//it is correct.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is a stream?
What are the salient features of c languages?
How does struct work in c?
What is the code in while loop that returns the output of given code?
what is a constant pointer in C
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
How do I swap bytes?
How can I implement a delay, or time a users response, with sub-second resolution?
what value is returned to operating system after program execution?
What is null pointer constant?
Explain the binary height balanced tree?
What is difference between scanf and gets?
Explain About fork()?
Can you return null in c?
Why does the call char scanf work?