+ 2
Logic please ?
#include <iostream> #include <cstdio> using namespace std; int main() { int x = 25; printf("%d ", printf("%d ", x)); return 0; } Output 25 3 Can anyone please explain me ?
2 Antworten
+ 2
On success,printf return the total number of characters written.
your code print x then print what the inner printf returned.
+ 1
Thank You so much for help and let me the knowledge logic behind it.