Thursday, 16 August 2012

What will be the output if you compile and execute the following c code? | C Programming

#include<stdio.h>
 int main()
{
inti=4,x;
x=++i + ++i + ++i;
printf("%d",x);
return0;}


A. 21
B. 18
C.. 12
D. Compiler error
E. None of above

Ans: A

No comments: