let's say I have 2 numbers x and y. How do I check if x*y results in an overflow in C++?. Both x and y are long long int.
C++ how to check for overflow in long long
let's say I have 2 numbers x and y. How do I check if x*y results in an overflow in C++?. Both x and y are long long int.