C++ Keywords
- "const","prevents a variable from being modified by your program"
- "volatile","informs the compiler that a variable may be changed by factors outside of the
program"
- "auto","declares a local variable"
- "extern","declares a variable but does not allocate storage for it"
- "static","a variable that maintains its value between function calls"
- "register","requests that a variable be optimized for access speed"
- "enum","declares an enumeration"
- "typedef","lets one create a new name for an existing data type"
- "sizeof","a compile-time operator that obtains the size of a type or variable"
- "new","allocates dynamic memory"
- "delete","frees previously allocated dynamic memory"
- "struct","begins a structure declaration"
- "union","begins a union declaration"
- "class","begins a class declaration"
- "public","declares the public members of a class"
- "private","used to declare the private members of a class"
- "inline","used to declare a small function whose code is expanded in line rather than called"
- "friend","gives a non-member function access to the private members of a class"
- "this","a pointer to the object that invokes a member function"
- "operator","used to overload operators"
- "protected","declares protected members or inherits a protected class"
- "virtual","a type of inheritance that ensures that only one copy of a base class will be present in
any derived class"
Back to the Main Menu