C Programming - Format Strings are Important!!

Guess, What will be the output?


#include < stdio.h >

int main(int argc, char *argv[])
{
int i=10;
int *j=&i;
printf("aaa%n\n");
printf("%d\n",i);
}



I ran this program on .NET platform with optimization disabled, it should be portable across all other platforms also.

Labels:


About this entry