Код: Выделить всё
int a = 2147483647; // 2^31 - 1
if (a + 1 > a) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79099072/c-comparison-with-integer-overflow[/url]Код: Выделить всё
int a = 2147483647; // 2^31 - 1
if (a + 1 > a) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79099072/c-comparison-with-integer-overflow[/url]