Constant Declaration in C

Level 120 keystrokes

Declares a constant integer named MAX with value 100.

C code

// const makes the variable read-only after initialization
// Constant names are often written in uppercase
1const int MAX = 100;
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.

  • ;× 1
  • =× 1

More C examples at level 1

← C typing practice