Left Shift in C
Level 123 keystrokes
Shifts the bits of 5 two positions to the left.
C code
// << is the left shift operator// 5 << 2 shifts bits left by 2, equivalent to 5 * 4 = 201printf("%d\n", 5 << 2);Output
20
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