ProgrammingVery hard

printf("%d", 5 & 6 == 4); What is printed?

  1. A. 1
  2. B. 4
  3. C. 5
  4. D. 0

Correct answer: D. 0

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

More C Programming questions

Exams that ask this topic