C | Input and Output | Question 12

Output of following program?

filter_none

edit
close

play_arrow

link
brightness_4
code

#include<stdio.h>
int main()
{
    printf("%d", printf("%d", 1234));
    return 0;
}

chevron_right


(A) 12344
(B) 12341
(C) 11234
(D) 41234


Answer: (A)

Explanation: printf() returns the number of characters successfully printed on the screen.

Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.