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

9.31 Byte

Synopsis

 
type
  Byte  { built-in type }

Description

`Byte' is an unsigned integer type which is one "unit" wide. On most platforms one unit has 8 bits, therefore the type is named "byte" and usually has a range of `0..255'. (It is the same as section 9.33 ByteCard.)

`Byte' in GNU Pascal is compatible to `unsigned char' in GNU C.

There are lots of other integer types in GPC, see section 8.2.3 Integer Types.

Conforming to

`Byte' is a Borland Pascal extension. (For something equivalent in ISO Pascal, see section 8.2.10.1 Subrange Types.)

Example

 
program ByteDemo;
var
  a: Byte;
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