G
Gonçalo Rodrigues
Hi all,
Suppose I have:
#include <climits>
const int val = INT_MAX;
val += 1;
Does the standard prescribe what happens with the above overflowing?
And if not, is there any *portable* way of discovering what happens?
Note: I've tested in my platform and the value val wrapps around.
TIA, with my best regards,
G. Rodrigues
Suppose I have:
#include <climits>
const int val = INT_MAX;
val += 1;
Does the standard prescribe what happens with the above overflowing?
And if not, is there any *portable* way of discovering what happens?
Note: I've tested in my platform and the value val wrapps around.
TIA, with my best regards,
G. Rodrigues