Trigraph (Computing)

A trigraph is a sequence of three characters that represents a single character. The character set of the C programming language is contained within the 7-bit ASCII character set, but is a superset of the ISO 646-1983 Invariant Code Set. To enable programs to be represented in this reduced character set, the preprocessor replaces all occurrences of the following trigraph sequences by their single-character equivalents before any other processing:
      Trigraph     Equivalent           ==        ??=            #        ??/            \        ??'            ^        ??(            [        ??)            ]        ??!            |        ??<            {        ??>            }        ??-            ~ 
This feature of the C language is obsolete today, and many compilers either have an option to turn recognition of trigraphs off, or disable trigraphs by default and have an option to turn them on, or issue warnings at trigraphs. To enter two question marks, one has to use an escape sequence such as "?\?". The only places in the grammar of C where it would be appropriate to have two question marks in a row would be in character constants, string literals, and comments. However Herb Sutter in his Guru of the Week showed a case of a trigraph which is unsafe even in a comment:
  // Will the next line be executed ????????????????/ 
a++;

 

<< PreviousWord BrowserNext >>
uss dugong (ss 353)
self interpreter
uss espada (ss 355)
sexual stimulation
uss garlopa (ss 358)
international pentecostal holiness church
uss garrupa (ss 359)
saint paul's college
salmon river
uss goldring (ss 360)
classical music
gesture
the greens (netherlands)
vdiff
trou de loup
communist party of nepal (maoist)
nfl rejects
cosmotheism
norwegian 6th division
list of anime conventions
list of people associated with the french revolution
independent university of moscow
multigenomic organism
trigraph
sts 51 l
music of serbia and montenegro
music of serbia
music of montenegro
anna university
uss unicorn
uss unicorn (ss 436)
uss unicorn (ss 429)
uss whitefish (ss 432)
wurundjeri
jim hall (programmer)
da afghanistan bank
digraph (computing)
tempelhof
blunt
gaston b. cashwell
decoy
joscelin iii of edessa
trigraph (orthography)
cape malea