3 ms·
if we used i >= 0 and someone were to come in and change "int i" to "unsigned i" or "size_t i", the result would be catastrophic
by xdavidliu 4y ago
if we used i >= 0 and someone were to come in and change "int i" to "unsigned i" or "size_t i", the result would be catastrophic
- Leherenn 4y agoThe same argument can be applied to GP's code with the added bonus it will cause UB at some point.