1.

What will be the output of the following C code?
#include <stdio.h>
void main()
{
int num1 = 7, num2 = -9, num3 = 3, num4;
num4 = ++num1 && ++num2 || ++num3;
printf("%d %d %d %d", num1, num2, num3, num4);
}

A. 8 -8 3 1
B. 1 3 8 -8
C. 1 8 -8 3
D. 8 1 3 -8
E. None of these
Answer» B. 1 3 8 -8


Discussion

No Comment Found

Related MCQs