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 |
What is the best c++ ide?
What is the difference between method and message?
Define whitespace in C++.
What are multiple inheritances (virtual inheritance)?
What are the basics concepts of OOPS?
What is an orthogonal base class in c++?
What c++ library is string in?
#include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return 1; } } }
Should I learn c or c++ or c#?
What is a breakpoint?
what you know about c++?
print first nodd numbers in descending order