![]() |
Keywords in C++ |
Keywords in C++
Keywords can be referred as the reserved words or predefined words that carry some fixed meaning and task in our program. There is fixed number of keywords in C++.They can neither be modified nor can be used as Identifiers in program. We need not to define keywords, their meaning and task is already known to the compiler.
Following is the list of keywords in C++:
asm | else | new | this |
auto | enum | operator | throw |
bool | explicit | private | true |
break | export | protected | try |
case | extern | public | typedef |
catch | false | register | typeid |
char | float | reinterpret_cast | typename |
class | for | return | union |
const | friend | short | unsigned |
const_cast | goto | signed | using |
continue | if | sizeof | virtual |
default | inline | static | void |
delete | int | static_cast | volatile |
do | long | struct | wchar_t |
double | mutable | switch | while |
dynamic_cast | namespace | template |
Caution!!! Keywords cannot be used as identifiers.
Also read: Identifiers in C++
Comments
Post a Comment