2 ms·
How so?
by robomartin 14y ago
How so?
- renata 14y agoIn C at least, pushbutton could be strictly greater than one and still be treated as true, but that would be a different result in the arithmetic versions of the statement. It could be made identical by using "!!pushbutton".
- robomartin 14y agoI think you might be taking what was intended to be a simple example a little too far. That said, "pushbutton" could very well be limited to the values 0 and 1 during the keypad scanning, debouncing and decoding code. Chill bro.
- alexatkeplar 14y agoWhere pushbutton == 2, 36 != 24
- bmm6o 14y agoIf pushbutton is neither 0 nor 1.