1.

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

A. 2, 2, 2
B. 6, 9, 18
C. 9, 6, 18
D. 18, 6, 9
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs