| |
| | A few notes concerning C++ integral data types with reference to integer type |
 | | It is, as its name suggests, a type able to represent integers, or, better, a finite subset of whole numbers. |
 | | With the int type on two bytes, and two's complement representation, the lowest and the highest int numbers that can be represented are -32768 and +32767. |
 | | Even if you have taken care that your variables fit into the type you have choosen for them, their sum or subraction could generate a result out of bounds allowed for that type, and you cannot recognize it at run-time (unless you try managing overflow, carry and so on). |
| www.fiacopetti.it /cpp_integers01.htm (1849 words) |
|