A
amit.codename13
I am not sure which one of the following errors are examples of
integer overflow...
by integer overflow i mean the one that the C99 standard states would
invoke undefined behavior...
1> int i=INT_MAX+1;
2> int i=INT_MOREMAX;
where INT_MOREMAX is a macro defined to have a value greater than
INT_MAX;
if i am not wrong, integer overflow can occur in the creation of the
value that would be assigned to i...
and where does the standard mention (if it is true) that INT_MAX is
the limit crossing which can cause a integer overflow... why not
LONG_MAX ?
integer overflow...
by integer overflow i mean the one that the C99 standard states would
invoke undefined behavior...
1> int i=INT_MAX+1;
2> int i=INT_MOREMAX;
where INT_MOREMAX is a macro defined to have a value greater than
INT_MAX;
if i am not wrong, integer overflow can occur in the creation of the
value that would be assigned to i...
and where does the standard mention (if it is true) that INT_MAX is
the limit crossing which can cause a integer overflow... why not
LONG_MAX ?