Logical AND in C

Level 123 keystrokes

Evaluates logical AND between 1 (true) and 0 (false).

C code

// && (logical AND) returns 1 if both operands are non-zero, otherwise 0
// Here 0 is false, so 1 && 0 is 0
1printf("%d\n", 1 && 0);

Output

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

More C examples at level 1

← C typing practice