Q:

What would the C code display?

Possible Duplicate:
Reason for the Output  

Hi, 
Can you please explain me the output of this code snippet? The answer is "d"
void main()
{
short int a=5;
clrscr();
printf("%d"+1,a);
getch();
}

Thanks.

A:

"%d" + 1 is a pointer to "d", so in fact you are executing printf( "d", a );.

