3 ms·
Your assignment j=-i doesn't work if i=-2^31 since the range of 32 bit signed int is -2^31 to 2^31-1. (Obviously this code never has i<0 so that branch is neve
by dalke 15y ago
Your assignment j=-i doesn't work if i=-2^31 since the range of 32 bit signed int is -2^31 to 2^31-1.
(Obviously this code never has i<0 so that branch is never even taken.)