Character Output in C

Level 120 keystrokes

Outputs a single character 'A' followed by a newline using %c format.

C code

// %c is the format specifier for a single character
// Character literals are enclosed in single quotes
1printf("%c\n", 'A');

Output

A
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
  • "× 2
  • ,× 1
  • ;× 1
  • (× 1
  • )× 1
  • \× 1
  • %× 1

More C examples at level 1

← C typing practice