next up previous
Next: Activity Up: Overview of C++ Previous: Special Characters

C++ Keywords

There are 60 key words currently defined for C++. They are shown in Table 2.3 below. Together with the formal C++ syntax, they form the C++ programming language. Keep in mind to avoid giving these keywords as names of variables.


 

 
Table 2.3: C++ Keywords
Asm auto bool break case
catch char class const_cast continue
default delete do double else
enum dynamic_cast extern false float
for union unsigned using friend
goto if inline int long
mutable virtual namespace new operator
private protected public register void
reinterpret_cast return short signed sizeof
static static_cast volatile struct switch
template this throw true try
typedef typeid unsigned wchar_t while


C++ is a case sensitive language, and it requires that all key words be in lowercase.
next up previous
Next: Activity Up: Overview of C++ Previous: Special Characters
Yousef Haik
2/23/1998