[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.251 ShortInt

Synopsis

 
type
  ShortInt  { built-in type }

Description

`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.

Conforming to

`ShortInt' is a Borland Pascal extension. In Borland Pascal, `ShortInt' is an 8-bit signed integer type (`ByteInt' in GNU Pascal).

Example

 
program ShortIntDemo;
var
  a: ShortInt;
begin
  a := 42;
  WriteLn (a)
end.

See also

section 8.2.3 Integer Types, section 8.2.10.1 Subrange Types.



This document was generated by Frank Heckenbach on May, 10 2002 using texi2html