C++ legal Characters

The set of characters used in C++ consists of -

TokenExample
AlphabetsA-Z and a-z
Digits0-9
Special characters$%^

The following table will depict the characters used in C++ Progeamming language -

Special Characters TypeExample
Arithmetic Operators - + * / %
Logical Operators & !
Brackets ( ) { } [ ]
Relational Operators < > = #
Other Symbols : ; _(underscore) >> ?
These all the characters are said to be valid characters in C++ programming language. We are using these characters for the purpose of the declaring variable name,class name.

Some of the Definitions :

TermDefinition
AlphabetAn alphabet is a standard set of letters (basic written symbols or graphemes) for the listing of words
DigitsA digit is an element of a set that taken as a whole comprises a system of Numeration
Special Character ASCII printable characters are called as Special Characters