Multiple choice

Which of the following format specifiers is used to process unsigned hexadecimal values?

  1. %x

  2. %d

  3. %o

  4. %u

  5. %e

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The %x specifier is used to print int as hexadecimal values,' x' uses lower-case letters and 'X' uses upper-case.