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 |
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What are the advantages of using typedef in a program?
What is meant by reference variable in C++?
What are c++ manipulators?
What are the advantage of using register variables?
What is fflush c++?
What are the main differences between C and C++?
How to get the current position of the file pointer?
What is lazy initialization in c++?
What's the best free c++ profiler for windows?
What are the differences between public, private, and protected access?
12 Answers IBM, Oracle, Wipro,
What data encapsulation is in c++?