Keywords in C++


Keywords in C++




The keywords implement specific C++ language feature. They are explicitly reserved identifiers a
nd cannot be used as names for the program variables or other user-define program elements.


Asm
To declare that a block of code is to be passed to the assembler
Auto
A storage class specifier that is used to define objects in a block
Bool
Boolean false-true type that can hold either the false or true literals
Break
Terminates a switch statement or a loop
Case
Used specifically within a switch statement to specify a match for the statement's expression
Catch
Specifies actions taken when an exception occurs
Char
Fundamental data type that defines character objects
Class
To declare a user-defined type that encapsulates data members and operations or member functions
Const
To define objects whose value will not alter throughout the lifetime of program execution
Const_Cast
const_cast is used to cast away the constness of variables.
Continue
Transfers control to the start of a loop
Default
Handles expression values in a switch statement that are not handled by case
Delete
Memory deallocation operator
Do
Indicates the start of a do-while statement in which the sub-statement is executed repeatedly until the value of the expression is logical-false
Double
Fundamental data type used to define a floating-point number
Dynamic_Cast
The dynamic_cast keyword casts a datum from one pointer or reference type to another, performing a runtime check to ensure the validity of the cast
Else
Used specifically in if-el.se statement
Enum
To declare a user-defined enumeration data type
Explicit
To declare an explicit constructor
Export
Allows a template definition to be accessible from another translation unit.
Extern
An identifier specified as extern has external linkage to the block
False
Boolean literal of value zero
Float
Fundamental data type used to define a floating-point number
For
Indicates the start of a for statement to achieve repetitive control
For
A class or operation whose implementation can access the private data members of a class
Goto
Transfer control to a specified label
If
Indicate start of an if statement to achieve selective control
Inline
A function specifier that indicates to the compiler that inline substitution of the function body is to be preferred to the usual function call implementation
Int
Fundamental data type used to define integer objects
Long
A data type modifier that defines a 32-bit int or an extended double
Mutable
Allows an object member to override constness
Namespace
Defines a scope
New
Memory allocation operator
Operator
Overloads a c++ operator with a new declaration
Private
Declares class members which are not visible outside the class
Protected
Declares class members which are private except to derived classes
Public
Declares class members which are visible outside the class
Register
A storage class specifier that is an auto specifier, but which also indicates to the compiler that an object will be frequently used and should therefore be kept in a register
Return
Returns an object to a function's caller
Short
A data type modifier that defines a 16-bit int number
Signed
A data type modifier that indicates an object's sign is to be stored in the high-order bit
Sizeof
Returns the size of an object in bytes
Static
The lifetime of an object defined static exists throughout the lifetime of program execution
Struct
To declare new types that encapsulate both data and member functions
Switch
Switch statement
Template
Parametrised or generic type
This
A class pointer which points to an object or instance of the class
Throw
Generate an exception
True
Boolean literal of value one
Try
Indicates start of a block of exception handlers
Typedef
Synonym for another integral or user-defined type
Typeid
The typeid () operator returns the type of its operand
Typename
Within a template typename indicates that a qualified name denotes a type
Union
Similar to a structure, struct, in that it can hold different types of data, but a union can hold only one of its members at a given time.
Unsigned
A data type modifier that indicates the high-order bit is to be used for an object
Using
using declaration and using directive
Virtual
A function specifier that declares a member function of a class which will be redefined by a derived class
Void
Absent of a type or function parameter list
Volatile
Define an object which may vary in value in a way that is undetectable to the compiler
Wchar_t
Wide character type
While
Start of a while statement and end of a do-while statement






To learn more you can just click the below topics:

C++

INTRODUCTION OF C++ || Definition of C++
Brief history of C++ || history of C++
Features of C++ || why we use C++ || concept of C++
Concept of OOP || What is OOP || Object oriented programming language
Difference Between OOP And POP || Different Between C and C++
Characteristics of C++
Interesting fact about C++ || Top 10 interesting fact about C++
C++ Program Structure
Writing first program in C++ || how to write hello world in C++
Basic Data Type And Variable In C++
Identifier in C++
Token in C++
Comment in C++
Constant in C++
Modifier in C++
Taking User Input in C++ | User input in C++
Input Output Operator In C++
C++ Operators | Operator in programming language
How to Add two number in C++
Polymorphism in C++
Compile Time Polymorphism in C++
Function overloading in C++
Operator Overloading in C++
What are Control Structures in C++ || Understanding Control Structures in C++ | How to use if, else, switch
What are Functions and Recursion in C++ | How to Defining and Calling Functions

Class in C++
Object in C++

Data Science

The History and Evolution of Data Science
Scope of Data Science
Why learn Data Science? | Why Data Science?
Impact of Data Science
The Importance of Data in Science | Introduction to Data Science
What is Data Analysis | Data Analyst for Beginners

Algorithm

Why algorithm | The Importance of Algorithms in Modern Technology

Tech to know

Which is better | BSc in Computer Science or BTech?

Post a Comment

Ask any query by comments

Previous Post Next Post