Logical OR in C
Level 123 keystrokes
Evaluates logical OR between 1 (true) and 0 (false).
C code
// || is the logical OR operator// Returns 1 if at least one operand is non-zero1printf("%d\n", 1 || 0);Output
1
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