ProgrammingHard

printf("%d", (2, 3) | 4); What is printed?

  1. A. 7
  2. B. 3
  3. C. 4
  4. D. 6

Correct answer: A. 7

The comma operator yields its right operand, 3, and 3 | 4 = 7.

More C Programming questions

Exams that ask this topic