ProgrammingModerateAccenture · C

What is printed?

What is printed?
unsigned char c = 200;
c += 100;
printf("%d", c);
  1. A. 44
  2. B. 300
  3. C. 255
  4. D. 0

Correct answer: A. 44

The sum 300 is converted back to unsigned char, which reduces it modulo 256 to 44.

More C Programming questions

Exams that ask this topic