Hexadecimal Number in C++
Level 121 keystrokes
Prints the hexadecimal literal 0xFF in decimal, which is 255.
C++ code
// The 0x prefix marks a hexadecimal literal; F stands for 15// 0xFF = 15 * 16 + 15 = 255, and cout prints integers in decimal by default1cout << 0xFF << endl;Output
255
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