Read Time:24 Second
C++ Reserved Keywords

Keywords are predefined words that have special meanings to the compiler. For example,
int age;
Here, int
is a keyword that indicates age is a variable of type integer.
Here is a list of all C++ keywords. (as of C++17)
alignas | decltype | namespace | struct |
alignof | default | new | switch |
and | delete | noexcept | template |
and_eq | do | not | this |
asm | double | not_eq | thread_local |
auto | dynamic_cast | nullptr | throw |
bitand | else | operator | true |
bitor | enum | or | try |
bool | explicit | or_eq | typedef |
break | export | private | typeid |
case | extern | protected | typename |
catch | false | public | union |
char | float | register | unsigned |
char16_t | for | reinterpret_cast | using |
char32_t | friend | return | virtual |
class | goto | short | void |
compl | if | signed | volatile |
const | inline | sizeof | wchar_t |
constexpr | int | static | while |
const_cast | long | static_assert | xor |
continue | mutable | static_cast | xor_eq |
Note: As C++ is a case sensitive language, all keywords must be written in lowercase.
Average Rating