Thursday, 16 August 2012

What is the output of following c code? | C Programming

#include<stdio.h>
int main()
{
inta=10;
printf("%d %d %d",a,a++,++a);
return0;
}


A. 12 11 11
B. 12 10 10
C.. 11 11 12
D. 10 10 12
E. Compiler error

Ans: A

No comments: