ProgrammingModerate

int a, b, c; a = b = c = 5; printf("%d", a + b + c); What is printed?

  1. A. 15
  2. B. 5
  3. C. 10
  4. D. 3

Correct answer: A. 15

Chained assignment gives each variable the value 5, and their sum is 15.

More C Programming questions

Exams that ask this topic