trigraphs

Controls the use trigraph sequences specified in the ISO standards.

Syntax
#pragma trigraphs on | off | reset
  
Remarks

If you are writing code that must strictly adhere to the ANSI standard, enable this pragma.

Table 1. Trigraph table
Trigraph Character
??= #
??/ \
?? ' ^
??( [
??) ]
??! |
??< {
??> }
??- ~
Note: Use of this pragma may cause a portability problem for some targets.

Be careful when initializing strings or multi-character constants that contain question marks.

Listing 1. Example of Pragma trigraphs
char c = '????'; /* ERROR: Trigraph sequence expands to '??^ */
char d = '\?\?\?\?'; /* OK */

By default, this pragma is disabled.

Related information
asmpoundcomment
asmsemicolcomment
const_strings
dollar_identifiers
gcc_extensions
mark
mpwc_newline
mpwc_relax
multibyteaware
multibyteaware_preserve_literals
text_encoding
unsigned_char