4 ms·
Switch in C/C++ doesn't enforce mutual exclusivity though. You can forget a "break" statement and fall through multiple cases.
by almostdeadguy 7y ago
Switch in C/C++ doesn't enforce mutual exclusivity though. You can forget a "break" statement and fall through multiple cases.
- olliej 7y agoI believe there are warning flags you can turn on for this, and compiler defines/tokens to allow fall through.