Node: Char, Next: ChDir, Previous: CCardinal, Up: Reference

### Char

#### Synopsis

         type
           Char  { built-in type }

#### Description

The built-in type `Char` holds elements of the operating system's character set (usually ASCII). The `Char` type is a special case of ordinal type. Conversion between character types and ordinal types is possible with the built-in functions `Ord` and `Chr`.

#### Conforming to

`Char` is defined in ISO 7185 Pascal and supported by all known Pascal variants.

#### Example

         program CharDemo;
         var
           a: Char;
         begin
           a := 'x';
           WriteLn (a)
         end.

#### See also

Character Types, Ordinal Types, Type Casts, Ord, Chr.