Bitwise AND in C

Level 124 keystrokes

Performs bitwise AND operation between 12 and 10.

C code

// & is the bitwise AND operator
// 12 (1100) & 10 (1010) = 8 (1000)
1printf("%d\n", 12 & 10);

Output

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

More C examples at level 1

← C typing practice