Explain storage qualifiers in c++.



Explain storage qualifiers in c++...

Answer / Dipal Singh Rana

"Storage qualifiers are used to specify the properties of a variable's memory allocation in C++. They include:
1. auto: The compiler determines the type of the variable
2. register: Stores the variable in a CPU register (discussed above)
3. static: Static variables maintain their values between function calls and have internal linkage
4. extern: Declares a global variable outside of any function"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the handle class?

1 Answers  


What are the two types of comments, and how do they differ?

1 Answers  


How do you generate a random number in c++?

1 Answers  


What are references in c++?

1 Answers  


How many types of classes are there in c++?

1 Answers  


Write the program for fibonacci in c++?

20 Answers   TATA, Wipro,


What is the type of 'this' pointer? When does it get created?

1 Answers  


Declare a class vehicle and make it an abstract data type.

1 Answers  


What is the two main roles of operating system?

1 Answers  


What are the extraction and insertion operators in c++? Explain with examples.

1 Answers  


How the delete operator differs from the delete[]operator?

1 Answers  


Explain the volatile and mutable keywords.

1 Answers  


Categories