S
subramanian100in
Suppose
unsigned int size = UINT_MAX;
Now consider
++size;
After increment operator, size value becomes zero in
1) VC++ 2005 Express Edition on Intel Pentium D and
2) Redhat Enterprise Linux gcc on Intel Pentium D
Will it be possible to tell whether this behaviour(ie becoming 0) be
the same on all machines and all standard C compliant compilers. Is
this a question about overflow ? I am reading K & R second edition.
Are there any internet links that I should read material to know
more ?
Thanks
unsigned int size = UINT_MAX;
Now consider
++size;
After increment operator, size value becomes zero in
1) VC++ 2005 Express Edition on Intel Pentium D and
2) Redhat Enterprise Linux gcc on Intel Pentium D
Will it be possible to tell whether this behaviour(ie becoming 0) be
the same on all machines and all standard C compliant compilers. Is
this a question about overflow ? I am reading K & R second edition.
Are there any internet links that I should read material to know
more ?
Thanks