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 handle class?
How would you use the functions memcpy(), memset(), memmove()?
What is the basic difference between C and C++?
How are the features of c++ different from c?
Does c++ have arraylist?
What is jump statement in C++?
Explain the advantages of using friend classes.
Where are setjmp and longjmp used in c++?
how can u create a doubly linked list with out using pointers?
What is the advantage of an external iterator.
Explain how to initialize a const member data.
Will this c++ program execute or not?