digraph

Applies to C Applies to C++

Purpose

Lets you use digraph key combinations or keywords to represent characters not found on some keyboards.

Syntax


Syntax Diagram

See also #pragma options.

Defaults

Notes

A digraph is a keyword or combination of keys that lets you produce a character that is not available on all keyboards.

The digraph key combinations are:


Key Combination Character Produced
<% {
%> }
<: [
:> ]
%% #

Additional keywords, valid in C++ programs only, are:


Keyword Character Produced
bitand &
and &&
bitor |
or ||
xor ^
compl ~
and_eq &=
or_eq |=
xor_eq ^=
not !
not_eq !=

Example

To disable digraph character sequences when compiling your program, enter:

xlc++ myprogram.C -qnodigraph

Related References

Compiler Command Line Options
langlvl
trigraph
#pragma options IBM Copyright 2003