What is the output of the following code? int main() {
What is the output of the following code?
#include <stdio.h>
int main() {
printf("%d", printf("C Programming"));
return 0;
}
Show answerHide answer
Correct answer: (D) C Programming13
Explanation
The inner printf runs first, prints "C Programming" and returns the number of characters printed, 13. The outer printf then prints 13, giving "C Programming13".