trigraph

Applies to C Applies to C++

Purpose

Instructs the compiler to recognize trigraph key combinations used to represent characters not found on some keyboards.

Syntax

        .-trigraph---.
>>- -q--+-notrigraph-+-----------------------------------------><
 
 

Notes

A trigraph is a combination of three-key character combinations that let you produce a character that is not available on all keyboards.

The trigraph key combinations are:


Key Combination Character Produced
??= #
??( [
??) ]
??/ \
??' ^
??< {
??> }
??! |
??- ~

C only The default -qtrigraph setting can be overridden by explicitly setting the -q[no]trigraph option on the command line.

An explicit -q[no]trigraph specification on the command line takes precedence over the -q[no]trigraph setting normally associated with a given -qlanglvl compiler option, regardless of where the -q[no]trigraph specification appears on the command line.

C++ only The same is true for C++ programs.

Examples

  1. To disable trigraph character sequences when compiling your program, enter:
    xlc++ myprogram.C -qnotrigraph
    

Related References

Compiler Command Line Options
digraph
langlvl IBM Copyright 2003