Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computer
programming, digraphs and trigraphs are sequences of two and three
characters respectively, appearing in source code, which a programming
language specification requires an implementation of that language to
treat as-if they were one other character. Various reasons exist for
using digraphs and trigraphs: keyboards may not have keys to cover the
entire character set of the language, input of special characters may be
difficult, text editors may reserve some characters for special use and
so on. Trigraphs might also be used for some EBCDIC code pages that lack
characters such as { and }. The basic character set of the C programming
language is a superset of the ASCII character set that includes nine
characters which lie outside the ISO 646 invariant character set. This
can pose a problem for writing source code when the keyboard being used
does not support any of these nine characters. The ANSI C committee
invented trigraphs as a way of entering source code using keyboards that
support any version of the ISO 646 character set.