27-08-2016, 10:31 AM
1446013554-unitii.ppsx (Size: 159.27 KB / Downloads: 6)
C++ character set
Letters: A-Z, a-z
Digits: 0 to 9
Special Symbols : space + - / ( ) [ ] = ! = < > , ‘ “ $ # ; : ? &
White Spaces: Blank Space , Horizontal Tab, Vertical tab, Carriage Return.
Other Characters: C++ can process any of the 256 ASCII Characters as data or as literal
TOKENS
Smallest individual units in a program
C++ tokens are
Keywords
Identifiers
Constants
Special Characters / Strings
Operators
Keywords
Have some reserved meaning to the compiler
Implements specific C++ language features
Cannot be used as identifier names
asm do if return typedef
auto double inline short typeid
bool dynamic_cast int signed typename
break delete long sizeof union
case else mutable static unsigned
catch enum namespace static_cast using
char explicit new struct virtual
class extern operator switch void
const false private template volatile
const_cast float protected this wchar_t
continue for public throw while
default friend register true union
delete goto reinterpret_cast try unsigned