Comment on Figuring out round, floor and ceil with integer divisionparentComments−Sharlin3yLike all signed overflow, it's undefined behavior in C and C++, so what exactly happens is up to the gods of optimizing compilers.
Comments
Like all signed overflow, it's undefined behavior in C and C++, so what exactly happens is up to the gods of optimizing compilers.