| | |
| | |
|
|
|
|
Same value, occupying more memory space |
|
|
|
|
| | |
|
|
|
|
Same value, occupying more memory space |
|
|
|
|
| | |
|
|
|
|
Floating point equivalent of the integer value; fractional part is zero |
|
|
|
|
| Integral type | Its unsigned counterpart | Same value, if original number is nonnegative; a radically different positive number, if original number is negative |
| |
|
|
|
|
Longer signed integral type |
|
|
|
| |
|
|
|
|
Same value, occupying more memory space |
|
|
|
|
| |
|
|
|
|
Longer integral type (either signed or unsigned) |
|
|
|
| |
|
|
|
|
Same nonnegative value, occupying more memory space |
|
|
|
|
|
|
|
|
|
NOTE: The result of promoting a char to an int is compiler-dependent. Some compilers treat char as unsigned char, so promotion always yields a nonnegative integer. With other compilers, char means signed char, so promotion of a negative value yields a negative integer. |
|
|
|
|