The following lists the basic character set that must be available at both compile and run time:
a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9
! " # % & ' ( ) * + , - . / :
; < = > ? [ \ ] _ { } ~
The # (number sign) character is used for preprocessing only, and the _ (underscore) is treated as a normal letter.
The Universal-Character-Name
The universal character name
provides an alternative way to display non-ASCII characters, such
as multibyte characters. This new feature was recently added to
the December 1996 ISO/ANSI Draft for C++.
Syntax
\uhhhh or \Uhhhhhhhh where h is a hexadecimal number.
Valid Operators and Punctuators
The following operators and punctuators are valid
for C only.
| Operators and Punctuators | ||||||||
|---|---|---|---|---|---|---|---|---|
| { | } | [ | ] | # | ## | ( | ) | -> |
| <: | :> | <% | %> | %: | %:%: | ; | : | ... |
| || | ++ | ? | -- | . | , | + | - | * |
| / | % | ^ | & | | | ~ | ! | = | > |
| > | += | -= | *= | /= | %= | ^= | &= | |= |
| << | >> | >>= | <<= | == | != | <= | >= | && |
The following operators and punctuators are valid
for C++ only.
| Operators and Punctuators | ||||||||
|---|---|---|---|---|---|---|---|---|
| { | } | [ | ] | # | ## | ( | ) | |
| <: | :> | <% | %> | %: | %:%: | ; | : | ... |
| new | delete | ? | :: | . | .* | + | - | * |
| / | % | ^ | & | | | ~ | ! | = | > |
| > | += | -= | *= | /= | %= | ^= | &= | |= |
| << | >> | >>= | <<= | == | != | <= | >= | && |
| || | ++ | -- | , | ->* | -> | and | and_eq | bitand |
| bitor | compl | not | not_eq | or | or_eq | xor | xor_eq | |
![]()
Digraph, Trigraph,
and Escape Sequences
