1,312 views
0 votes
0 votes
WHAT IS THE OUTPUT OF THE FOLLOWING CODE?

 

printf("%d",printf("ABC"));

IS IT ABC3

1 Answer

Best answer
3 votes
3 votes
The return value of printf is the number of characters it printed.

printf("%d",printf("ABC"));

To execute the outer printf it needs to execute the inner printf to obtain the second parameter.

Hence output is ABC3
selected by

No related questions found