Professional Documents
Culture Documents
3.data Type
3.data Type
Exercise
The types short, int, and long are available for operations
with integers.
Example: -6728, -67, 0, 78, 36782, +763
These types are distinguished by their ranges of values.
The int (integer) type is tailor-made for computers and adapts
to the length of a register on the computer.
For 16-bit computers, int is thus equivalent to short.
For 32-bit computers int will be equivalent to long.
The signed and unsigned Modifiers
Example:
cin >> a;
cin >> b >> c;
cin >> x;
cin >> my-character;
Output statements