What is the use of volatile keyword in c++? Give an example.
The volatile keyword is intended to prevent the compiler from applying any optimizations on objects that can change in ways that cannot be determined by the compiler. Objects declared as volatile are omitted from optimization because their values can be changed by code outside the scope of current code at any time.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the concept of inheritance in C++.
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
What is problem with Runtime type identification?
Does c++ vector allocate memory?
Define the process of error-handling in case of constructor failure?
What is the difference between function overloading and operator overloading?
Explain virtual class and friend class.
When is a template a better solution than a base class?
Is set c++?
What are formatting flags in ios class?
What is the use of seekg in c++?
What are exceptions c++?