integer-overflow tag

1 questions


1 answers
119 views
0
Is there any way to detect int-type overflow in C/C++?

Please let me know if there's any other way I can do itI heard that there is an overflow flag in the hardwareI've never seen it on C/C++. int a, b, c;test=a*b;if (test/b!=a) {} //overflow detection -&...

2 years ago

© 2024 OneMinuteCode. All rights reserved.