1.

What will be the output of the following C code?#include <stdio.h> void main() { int p = 5; int q = ++p + p++ + --p; printf("Value of q is %d", q); }

A. Value of q is 19
B. Value of q is 18
C. Value of q is 17
D. Value of q is 5
E. None of these
Answer» B. Value of q is 18


Discussion

No Comment Found

Related MCQs