Saturday 4 April 2020

Keywords in C++


Keyword is a reserved word in any programming language. It has some special meaning defined in a program compiler. Keyword is not used for a function name or class name. Various keywords used in c++.
For example, int and cout are keywords. The original C++ contains the following keywords:

               asm, auto, bool, break, case, catch, char, class, const, const_cast, continue, default, delete, double, dynamic_cast, else, enum, explicit, extern, float, for, friend, goto, if, inline, int, long, mutable, namespace, new, operator, private, protected, public, register, return, short, signed, sizeof, static, struct, switch, template, this, throw, try, typedef, union, unsigned, virtual, void, volatile, while.

No comments:

Post a Comment