Character ASCII Value in C

Level 125 keystrokes

Outputs the ASCII value of character 'A' as an integer.

C code

// (int) turns the character into its numeric code, which %d prints
// 'A' has ASCII value 65
1printf("%d\n", (int)'A');

Output

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

More C examples at level 1

← C typing practice