- C++ Tokens
Tokens are the smallest available unit of a program. In C++ tokens are divided into 5 types:
- Keywords Ex: if, for, while
- Identifiers Ex: num, name
- Constants Ex: 10, 20
- operators Ex: +, /, –
- Special Symbols Ex: { }, ()
- C++ keywords
break else for
case enum goto
asm dynamic_cast namespace
bool explicit new
catch false operator
class friend private
const_cast inline public
delete mutable protected
auto const double
char do extern
continue reinterpret_cast
long signed switch
register sizeof typedef
static_cast using
int short struct
throw this virtual
true wchar_t signed
if return static
try void union
while volatile typeid
No comments:
Post a Comment