Home >>C++ Tutorial >C++ Keywords

C++ Keywords

C++ Keywords

A reserved word that cannot be used as a variable name or constant name is known as a keyword in C++.

Here is the list of specific 32 keywords that are available in the C++ language as well as in the C language:

  • break
  • case
  • char
  • const
  • continue
  • default
  • do
  • double
  • else
  • auto
  • enum
  • extern
  • float
  • for
  • goto
  • if
  • int
  • long
  • volatile
  • unsigned
  • register
  • return
  • short
  • while
  • signed
  • sizeof
  • static
  • struct
  • swith
  • typedof
  • union
  • void

Here are the list of the keywords that are present in the C++ language and not in the C language:

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

Popular Tutorials