Multiple choice

void main() { int x; x=1; x= 2 + 2 * x++; printf("%d", x); }

  1. 5

  2. 6

  3. 4

  4. Syntax error

  5. Runtime error

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Here, x =1. So, x = 2 + 2*1 = 4. Now by postfix increment operator, i will be increment by 1. So, x = 4+1= 5.