C
Christopher Benson-Manica
Can you correctly identify the output of the following program,
without compiling it?
#include <stdio.h>
int main( void )
{
int a=1;
int b=0;
int foo=10+a?1:0+b?1:0;
printf( "%d\n", foo );
return 0;
}
Let's just say that I wish I had opened my desktop C references BEFORE
compiling and checking in certain changes I made. D'oh!
without compiling it?
#include <stdio.h>
int main( void )
{
int a=1;
int b=0;
int foo=10+a?1:0+b?1:0;
printf( "%d\n", foo );
return 0;
}
Let's just say that I wish I had opened my desktop C references BEFORE
compiling and checking in certain changes I made. D'oh!