New course! Every coder should learn Generative AI!
Try a free lesson+ 2
What is the output of this code? int n = printf("0"); printf("%d", n);
Please explain the logic that how the output is '01'
2 Answers
+ 4
Printf returns the number of characters that are printed. So n is 1.
0
thanks Soheil