main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / abdur rab
it will lead to Undefined behaviour, both answers 3 aand 4
are correct.
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Does c have enums?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What is the difference between exit() and _exit() function in c?
What is meant by operator precedence?
What is malloc and calloc?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Difference between constant pointer and pointer to a constant.
Why pointers are used?
What are the two forms of #include directive?
What is a lvalue
How many levels deep can include files be nested?
What is a function in c?
Explain how can I avoid the abort, retry, fail messages?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What is the scope of static variable in c?