Comment Comment by still_grokking Little nitpick:In C/C++ it's "only" UB for signed ints.For unsigned ints it's arithmetic modulo 2^n (where n is the number of bits in the value representation of that particular size of integer).Such divergent definitions make the whole mess of course even bigger, that's not the point. parent still_grokking 4 years ago
In C/C++ it's "only" UB for signed ints.
For unsigned ints it's arithmetic modulo 2^n (where n is the number of bits in the value representation of that particular size of integer).
Such divergent definitions make the whole mess of course even bigger, that's not the point.