Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Character Data Type
◄Up► ◄Contents► ◄Index► ◄Back►
─────Character Data Type────────────────────────────────────────────────────
Character variables occupy one byte of memory for each character
and are assigned to contiguous bytes, independent of word
boundaries. A character constant is a sequence of one or more of
the printable ASCII characters enclosed in a pair of apostrophes
(') or quotes (").
The length of a character variable, character array element,
structure element, character function, or character constant with
a symbolic name must be between 1 and 32,767. The length can be
specified by:
■ An integer constant in the range 1-32,767
■ An integer expression (in parentheses) that evaluates to the
range 1- 32,767
■ An asterisk, indicating that the length of the symbolic constant
or formal argument can vary
-♦-