C Language - Input/Output Questions and Answers
Practice ModeShowing 10 of 54 questions
Q51
What will be the result of executing the following statement ?
int i = 10
printf ( "%d %d %d", i, ++i, i++);
Answer: Option D
Q52
What will be the result of the following program if the inputs are 2 3 ?
main ( )
{
int a, b;
printf ("enter two numbers :");
scanf ("%d%d',a,b);
printf('%d+%d=%d', a,b, a+b);
}
Answer: Option C
Q53
main ( )
{
int a=10, b=5, c=3, d=3;
if ((a<b) && (c = d++)) printf ("%d %d %d", a,b,c,d);
else printf ("%d %d %d %d", a, b, c, d);
}
Answer: Option C
Q54
What is the output off the following statement ?
printf("%u", -1);
Answer: Option C