Code to Character in C++

Level 125 keystrokes

Casts the number 66 to char and prints the matching character, B.

C++ code

// (char)66 converts the int 66 into a char with that code
// cout prints a char as a character, and code 66 is uppercase B in ASCII
1cout << (char)66 << endl;

Output

B
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.

  • <× 4
  • ;× 1
  • (× 1
  • )× 1

More C++ examples at level 1

← C++ typing practice