C Puzzle #12

What would be the output of the following C program? (Is it a valid C program?)
#include <stdio.h>
int main()
{
        int i=43;
        printf("%d\n",printf("%d",printf("%d",i)));
        return 0;
}
 
Answer
 

1 comment:

  1. rintf function returns string count that it has sent to stdout for printing...ans would be::4321

    ReplyDelete

Your answer for the question

Related Posts Plugin for WordPress, Blogger...