+ 2
What is the Output of the code? And how ?
int n = printf("0"); printf("%d",n);
2 Answers
+ 2
Thanks đ CarrieForle
+ 1
printf() returns the number characters that are printed. https://www.tutorialspoint.com/return-values-of-printf-and-scanf-in-c
int n = printf("0") //We call the function printf() so it prints "0". and the number of characters is 1. So n is 1.
printf("%d",n); //print n.