What is the use of volatile keyword in c++? Give an example.
Answer Posted / hrpynux@gmail.com
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 |
Post New Answer View All Answers
How can I learn dev c++ programming?
What are c++ storage classes?
What are the uses of pointers?
What is a syntax in c++?
What is DlgProc?
What is the most useful programming language?
Explain the static member function.
What are move semantics?
What are the unique features of C++.
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What is type of 'this' pointer?
What does count ++ do in c++?
How do I run c++?
What is a lambda function c++?
What is the difference between map and hashmap in c++?