Guess the Output of the following C Program:
#include "stdio.h"
int main()
{
int i=43;
printf("%d\n",printf("%d",printf("%d",i)));
return 0;
}
The answer is 4321.
Explanation:
printf returns the number of letters printed.
A Collection Of Weird and Interesting C Programs by Balaji
Monday, July 9, 2007
Interesting C Program -7
Posted by
Balaji V
at
10:35 AM
Labels: INTERESTING C PROGRAMS
Subscribe to:
Post Comments (Atom)







0 comments:
Post a Comment