A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.tutorialspoint.com/cplusplus/cpp_keywords.htm below:

C++ Keywords

C++ Keywords

In C++, keywords are reserved words that have special meanings to the compiler. They cannot be used for any other purpose or as identifiers, such as variables or function names. It’s a predefined words that are part of the C++ syntax. They help define the structure and behavior of the code.

Basic Data Type keywords

These keywords define basic data types −

Control Flow Keywords

Control flow keywords are special reserved words in programming that are used for implementing decision-making and repetitive tasks in programming.

Storage Class Keywords

These keywords specify the storage duration and linkage of variables −

Modifiers

These keywords are used in modifying the properties of data types −

Function Keywords

These keywords define specific behavior for functions

Class and Object Keywords

These keywords are fundamental concepts in object-oriented programming (OOP) that enable developers to define and manipulate user-defined data types.

Access Specifiers

Access specifiers are keywords in object-oriented programming that define the accessibility or visibility of class members (attributes and methods) to other parts of a program.

Exception Handling Keywords

These keywords are used for handling exceptions

Operator Keywords

Operator keywords are keywords that allow you to define or change how operators (like +, -, *, etc.) work with custom data types, such as classes.

Namespace Keywords

These keywords manage the scope of identifiers

Type Casting Keywords

These keywords are used for explicit type conversions

Miscellaneous Keywords

Some other keywords provided by the C++ library, that serve various purposes beyond the core functionalities of data types, control flow, or object-oriented programming.

Keywords Vs. Identifiers

Keywords are predefined and reserved by the programming language, it has specific functions and meanings in the language while identifiers are user-defined names for program elements, They are created to represent variables, functions, and other entities in the code.

Example Keywords Identifiers int, float, while, public, private, class, return, etc. myVariable, calculateSum, Person, _tempValue, etc.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4