Hexadecimal Output in C

Level 120 keystrokes

Outputs the integer 255 in uppercase hexadecimal format.

C code

// %X outputs integers in uppercase hexadecimal (A-F)
// 255 in decimal equals FF in hexadecimal
1printf("%X\n", 255);

Output

FF
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this C code and how often they appear.

  • "× 2
  • ,× 1
  • ;× 1
  • (× 1
  • )× 1
  • \× 1
  • %× 1

More C examples at level 1

← C typing practice