3 ms·
Where's my overflow flag?
Where's my overflow flag?
Not all CPU's have overflow flags. On those that have them, you can also usually access them in C in a non portable way.
C23 will get support for checked integer operations that report overflow.