C++ Keywords

In this tutorial you will learn about the C++ Keywords and its application with practical example.

C++ Keywords

In C++, there are is a set of reserved words that you cannot use as an identifier. These words are known as “reserved words” or “Keywords”. Keywords are standard identifiers and their functions is predefined by the compiler. We cannot use keywords as variable names, class names, or method names, or as any other identifier.

Below is list of available keywords in C++ programming Language –

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

In addition to above, following are also reserved words in C++

And bitor not_eq xor
and_eq compl or xor_eq
bitand not or_eq
Recommended:-  C++ Variable Types
In this tutorial we have learn about the C++ Keywords and its application with practical example. I hope you will like this tutorial.