
- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
What are type qualifiers in C++?
A type qualifier is a keyword that is applied to a type, resulting in a qualified type. For example, const int is a qualified type representing a constant integer, while int is the corresponding unqualified type, simply an integer. Type qualifiers are a way of expressing additional information about a value through the type system and ensuring correctness in the use of the data. As of 2014 and C11, there are four type qualifiers in standard C: const (C89), volatile (C89), restrict (C99) and _Atomic (C11). The first two of these, const and volatile, are also present in C++ and are the only type qualifiers in C++.
- Related Articles
- Explain volatile and restrict type qualifiers in C with an example
- What are type specifiers in C++?
- What are primitive data type in C++?
- What are implicit type conversions in C#?
- What are explicit type conversions in C#?
- What are implicit and explicit type conversions in C language?
- What are type guards in typescript?
- What is type deduction in C++?
- What is type inference in C++?
- What is Type casting in C#?
- What is Type conversion in C#?
- What is Type safe in C#?
- What is a type cast in C/C++?
- What are fits and what are the type of fits in metrology?
- What is the difference between type conversion and type casting in C#?

Advertisements