Computer Science, asked by juhaina76181, 1 year ago

Why type qualifiers used in c++ and what are they?

Answers

Answered by S4MAEL
1
hyy..

because C++ refers to the type qualifiers const and volatile as cv-qualifiersand recognizes the type qualifier restrict as a language extension. In both languages, constand volatile are only meaningful in expressions that are lvalues. C++ allows a cv-qualifier to apply to functions, which is disallowed in C.


hope it helps
Answered by beststudent1
1

Answer:

In this Exclusive C++ Training Series, we will extend the topic of variables further and see type qualifiers and storage classes in C++ in this tutorial. Though this is a small topic, it is very important and significant as far as C++ programming is concerned.

The type qualifiers in C++ do not change the meaning of the variables or entities they are used with, rather they only add extra information to the entity.

Similar questions