Re:How to check if any word is zero
by pklausler on Thursday October 20, 2022 @08:09PM
(#33282543)
Neither of these are correct.
[ Parent
| on HN ]
oh gosh you're right. Why am I getting confused?
I was thinking he wants to check if any of them ARE zero.
OR'ing them together:
0 || 1 || 0 || 0 = 1
0 || 0 || 0 || 0 = 0
AND'ing them together: 1 || 0 || 1 || 1 = 0
1 || 1 || 1 || 1 = 1