3 ms·
"x++" is not equivalent to "x = !x", which is probably what they meant. OTOH, as you noted, "x--" does the right thing.
by jwilk 4y ago
"x++" is not equivalent to "x = !x", which is probably what they meant. OTOH, as you noted, "x--" does the right thing.