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 |
How is computer programming useful in real life?
When we use Abstract Class and when we use Interface?where we will implement in real time?
Define vptr.
Explain unexpected() function?
the maximum length of a character constant can be a) 2 b) 1 c) 8
Write any small program that will compile in "C" but not in "C++"?
What is virtual base class uses?
an integer constant must have atleast one a) character b) digit c) decimal point
Is c++ platform dependent?
What is a c++ map?
What is ios :: in in c++?
What is the need of a destructor? Explain with the help of an example.