1.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
int p1 = 7, p2 = 5, k;
int p3;
p3 = p2 = 3, k = p1 && p2;
printf("%d n", k);
return 0;
}

A. Compilation Error
B. 7
C. Undefined behaviour due to order of evaluation can be different
D. 5
E. 1
Answer» F.


Discussion

No Comment Found

Related MCQs