C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
80 / 90
What will be output of the following "C" code?
#include <stdio.h>
void main()
{
printf("%d ",printf("FACE"));
}
#include <stdio.h>
void main()
{
printf("%d ",printf("FACE"));
}
AFACE4
BError
CGarbage Value
DFACE
Answer: Option (Login/Signup)
Show Explanation
Now, since no. of characters in the word FACE is 4, and we know that printf() return the no of characters that are passed as an argument.
Therefore, the output of this code will be FACE4.
Asked In ::
STEP-BY-STEP
printf("FACE");........will be executed first and will return the output as FACE.
Now, since no. of characters in the word FACE is 4, and we know that printf() return the no of characters that are passed as an argument.
Therefore, the output of this code will be FACE4.
Read Full Answer
Report Error
Please Login First Click Here