+ 2

Why the output is 264?

#include <stdio.h> int main() { int x=5; x=printf("\n %d",x*x+1); printf ("%d",x); return 0; } https://code.sololearn.com/coWkZs9oGD61/?ref=app

27th Oct 2018, 6:29 PM
Deviprasad Sahu
Deviprasad Sahu - avatar
3 Antworten
+ 7
1st printf() prints 26 and second print() prints 4, because printf returns the no of character printed
27th Oct 2018, 6:41 PM
❤️❤️❤️SANI❤️❤️❤️
+ 2
correct
4th Nov 2018, 5:27 PM
Keshav Halade
Keshav Halade - avatar
0
If answer is 26, then what's about 2nd printf() ? /* printf("%d",x); */ Friends.. ! Just go and run this code again
4th Nov 2018, 2:14 PM
Deviprasad Sahu
Deviprasad Sahu - avatar