List of Keywords in CPP (C Plus Plus)
What is Keywords?
Keywords are predefined, reserved identifiers that for a special purpose in the source code. They cannot be used as identifiers in a C++ program. However, you can define your own keywords to use in C++ language, and you can assign customized syntax coloring to the keywords.Â
It is reserved words in C++ library and used to perform an internal operation. There are the following list of C++ keyword in table form.
and | do | namespace | static_cast |
and_eq | double | new | struct |
asm | dynamic_cast | not | switch |
auto | else | not_eq | template |
bitand | enum | operator | this |
bitor | explicit | or | throw |
bool | export | or_eq | true |
break | extern | private | try |
case | false | protected | typedef |
catch | float | public | typeid |
char | for | register | typename |
class | friend | reinterpret_cast | union |
compl | goto | const | inline |
short | while | const_cast | int |
virtual | signed | continue | long |
void | sizeof | default | mutable |
volatile | static | delete | unsigned |
xor | xor_eq | return | wchar_t |
if | using |