ProgrammingModerate

printf("%x %o", 255, 8); What is printed?

  1. A. FF 8
  2. B. 255 8
  3. C. ff 9
  4. D. ff 10

Correct answer: D. ff 10

255 is ff in hexadecimal and 8 is 10 in octal, printed with lowercase digits.

More C Programming questions

Exams that ask this topic