View Single Post
Old 28 October 2019, 09:48   #6
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,900
Quote:
Originally Posted by Daedalus View Post
NOT is bitwise too. It works in boolean expressions because true is accepted to be any non-zero value
This is a contradiction in itself. If any non-zero value is true, then 2 is true, too. If NOT is bitwise, then NOT 2 is -3 which is still true. So NOT does not work in boolean expressions. It only works if TRUE (a.k.a. -1) has been returned by a comparison.
thomas is offline  
 
Page generated in 0.04368 seconds with 11 queries