Logical NOT in C
Level 119 keystrokes
Applies logical NOT to 0, resulting in 1.
C code
// ! is the logical NOT operator// !0 gives 1 (true); ! applied to any non-zero value gives 0 (false)1printf("%d\n", !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,× 1;× 1!× 1(× 1)× 1\× 1%× 1