Multiple choice

void main() { int x; x=10, 20, 30; printf("%d", x); }

  1. 30

  2. 20

  3. 10

  4. Garbage value

  5. Lexical error

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

Assignment operator has more precedence than comma operator. So, = operator will be evaluated first.  Hence, 10 will be printed.