3 ms·
(1 && 2) != (1 & 2) first both non zero so true and evalutes to non zero. Second 0b01 bitwise and 0b10 gives 0b00 which is obviously zero (or false).
by harry8 5y ago
(1 && 2) != (1 & 2)
first both non zero so true and evalutes to non zero. Second 0b01 bitwise and 0b10 gives 0b00 which is obviously zero (or false).