[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
type ShortInt { built-in type } |
`ShortInt' is a signed integer type which is not larger than `Integer'. On most platforms it is 16 bits wide and thus has a range of `-32768..32767'.
`ShortInt' in GNU Pascal is compatible to `short int' in GNU C.
There are lots of other integer types in GPC, see section 8.2.3 Integer Types.
`ShortInt' is a Borland Pascal extension. In Borland Pascal, `ShortInt' is an 8-bit signed integer type (`ByteInt' in GNU Pascal).
program ShortIntDemo; var a: ShortInt; begin a := 42; WriteLn (a) end. |
section 8.2.3 Integer Types, section 8.2.10.1 Subrange Types.