E
Enrico 'Trippo' Porreca
I believe there can be an integer overflow, without a silent
wrap-around, in the following example:
int a = INT_MAX;
a++;
Am I right? Could this lead to an abnormal program termination in some
implementations?
If so, could this happen without an arithmetical operation, i.e. because
of an assignment between different-ranged integers? I mean:
int a = 12345;
char b = a;
Or is it just an arithmetical operation issue?
wrap-around, in the following example:
int a = INT_MAX;
a++;
Am I right? Could this lead to an abnormal program termination in some
implementations?
If so, could this happen without an arithmetical operation, i.e. because
of an assignment between different-ranged integers? I mean:
int a = 12345;
char b = a;
Or is it just an arithmetical operation issue?