Keywords in C Plus Plus(C++) with examples
Keywords are reserved words in the C++ language that are used for a special purpose in the source code. They only can be used for the purpose of what they designed. However, you can define your own keywords to use in the 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 is the following list of C++ keywords in table form.
List of C++ keyword |
|||
or_eq | do | namespace | static_cast |
and_eq | double | new | struct |
asm | dynamic_cast | not | private |
auto | else | not_eq | template |
bitand | throw | operator | this |
bitor | explicit | or | enum |
bool | export | and | true |
char | extern | switch | try |
case | false | protected | typedef |
catch | float | public | typeid |
break | for | register | typename |
class | friend | reinterpret_cast | union |
compl | goto | const | inline |
short | while | const_cast | int |
virtual | signed | continue | long |
void | using | default | mutable |
volatile | static | delete | unsigned |
xor | xor_eq | return | wchar_t |
if | sizeof |
Latest posts by Prof. Fazal Rehman Shamil (see all)
- List of Public service commissions - August 31, 2020
- Comparison of fee structure of Pakistani Universities - June 1, 2020
- Past Guess Paper of Auditing - May 12, 2020