The keywords implement specific C++ language features. They are explicitly reserved identifiers and cannot be used as names for the program variables or other user-defined program elements.

the table below the complete set of c++ keywords. Many of them are common to both c and c++.

The ANSI C keywords are shown in boldface. Additional keywords have been added to the ANSI C keywords in order to enhance it's features and make it an object oriented language . ANSI C++ standards committee has added some more keywords to make the language more versatile .

List of C++ keywords

  1. asm
  2. auto
  3. break
  4. case
  5. catch
  6. char
  7. class
  8. const
  9. continue
  10. default
  11. delete
  12. do
  13. double
  14. else
  15. enum
  16. extern
  17. float
  18. for
  19. friend
  20. goto
  21. if
  22. inline
  23. int
  24. long
  25. new
  26. operator
  27. private
  28. protected
  29. public
  30. register
  31. return
  32. short
  33. signed
  34. sizeof
  35. static
  36. struct
  37. switch
  38. template
  39. this
  40. throw
  41. try
  42. typedef
  43. union
  44. unsigned
  45. virtual
  46. void
  47. volatile
  48. while

List of keyword added by ANSI C++

  1. bool
  2. const_cast
  3. dynamic_cast
  4. explicit
  5. export
  6. false
  7. mutable
  8. namespace
  9. reinterpert_cast
  10. static_cast
  11. true
  12. typeid
  13. typename
  14. using
  15. wchar_t