Contrary to your question, the program prints
Everything we know is a lie!
The bitwise operation of &
is this
dec binary
-8 111111111111111111111000
7 000000000000000000000111
------------------------
& 000000000000000000000000
However, the first statement
Math is good -8 and 7 are both not zero
would print if you used the logical operator &&
because both -8
and 7
are true
.
solved what does & mean? C [duplicate]