An integer takes 2 bytes in memory.
An int may be short int,
int, or long int. All of these data types have signed and unsigned forms. A short int requires half the
space of normal integer values. Unsigned numbers are always positive and consume all bits for the
magnitude of the number. The long and unsigned integers are used to declare a longer range of values.
The char data type defines a character.
Each character occupies one byte in memory. The
signed or unsigned qualifier can be explicitly applied to char. While unsigned characters have
Do'stlaringiz bilan baham: |