+ 1
#Why does it print 3...with 7..???...pls explain
#include <stdio.h> int main() { printf("%d\n", printf("7\n\n")); }
5 Answers
+ 2
Is it prints
7
3
or
Just 3 only?
Printf in c, returns how may charecters it printed..
So 1st printf("7\n\n");
prints 7,newline, newline, (3 chars)
Return 3, to replace %d in outer printf()...
So Output is
7
3
+ 1
Explain
0
kristidhar pandit
What more explanation you need.? I added enough information.. Read again....
Reason : printf return number of charecters printed....
0
Tq
0
Welcome..