
■
Int An int represents integers. On most systems, 4 bytes are allocated in
memory for each integer.
■
Float A float represents floating-point numbers. On most systems, 4 bytes are
allocated in memory for each float.
■
Double A double represents large floating-point numbers. On most PCs, 8
bytes of memory are used to store a double-type variable.
■
Char A char represents characters. On most systems, only 1 byte is allocated in
memory for each character.
There are also modifiers that may alter the size and type of the preceding data types.
These are short, long, signed, and unsigned. Signed types may contain positive or nega-
tive data values. Unsigned types ma ...