In C logic (like a conditional in an if statement):
Zero is false.
Anything else is true.
See also:
Cpl Bitwise Logical Operations
See:
Contents
Notes
A byte, word, int, char, or whatever containing zero (all binary zeros) is false.
A byte, word, int, char, or whatever containing anything else (any binary one) is true.
Contributors
- () RandyKramer - 23 Apr 2003
- If you edit this page: add your name here; move this to the next line; and if you've used a comment marker (your initials in parenthesis), include it before your WikiName.
Page Ratings