3 ms·
I believe it's a once-popular way to avoid this mistake: if (variable = false) // == intended Which is valid in C and some other languages. But if (f
by taspeotis 10y ago
I believe it's a once-popular way to avoid this mistake:
if (variable = false) // == intended
Which is valid in C and some other languages. But
if (false = variable)
Is not valid.
- spilk 10y agoThat makes way more sense than I would have thought. Thanks. Guess I've been away from C for a while.