Explain storage qualifiers in C++.
Page 1 of 1
Explain storage qualifiers in C++.
i.) Const - This variable means that if the memory is initialised once, it should not be altered by a program.
ii.) Volatile - This variable means that the value in the memory location can be altered even though nothing in the program code modifies the contents.
iii.) Mutable - This variable means that a particular member of a structure or class can be altered even if a particular structure variable, class, or class member function is constant.
Similar topics
» Define storage classes in C++.
» What is Stack? Explain its uses
» Explain abstraction.
» What is SRF Files? Explain with an example.
» Explain the problem with COM.
» What is Stack? Explain its uses
» Explain abstraction.
» What is SRF Files? Explain with an example.
» Explain the problem with COM.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|