C++ Keywords


Keywords are standard pre-defined words and these are all used in the lower case in the C and C++ program. Keywords which can’t be used with the names for variables.

A set of 62 keywords that can use in C++ program:

int char typedef long
if else enum case
auto register return double
extern struct switch volatile
union const float short
unsigned void continue for
signed sizeof default goto
do static while break
C++ keywords

There are another 30 reserved words that were not in C. It is new to C++.

asm dynamic_cast namespace reinterpret_cast try
bool explicit new static_cast typeid
virtual using this template typename
wchar_t throw true catch public
friend operator mutable protected private
inline delete false const_cast class



OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.