| United States-English |
|
|
|
![]() |
HP Pascal/HP-UX Programmer's Guide > Chapter 4 Predefined Pascal Constants, Data Types, and ModulesShortint |
|
The predefined data type shortint is an integer in the range -32768..32767 that is stored in 16 bits. (In contrast, if you declare a variable to be in that range, it is stored in 32 bits.) The type shortint has the following uses:
To determine whether a type T is assignment compatible with the type shortint, you can treat shortint as a subrange of integer. This means that you can assign a variable v of type T to a variable sv of type shortint if:
Example
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||