ProgrammingHard

What is the value of 5 & 6 | 3 in C?

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

Correct answer: C. 7

& binds tighter than |, so the expression is (5 & 6) | 3 = 4 | 3 = 7.

More C Programming questions

Exams that ask this topic