1.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
int p = -2, q = 5, r = 2, s;
s = ++p && ++q || ++r;
printf("%d, %d, %d, %d n", p, q, r, s);
return 0;
}

A. -1, 6, 2, 1
B. Compilation Error
C. 1, 6, 2, -1
D. 6, 2, 1, -1
E. None of these
Answer» B. Compilation Error


Discussion

No Comment Found

Related MCQs