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 ios in c++?
When to use Multiple Inheritance?
How is objective c different from c++?
What is pointer to array in c++?
What is a "RTTI"?
How Virtual functions call up is maintained?
the first character in the variable name must be an a) special symbol b) number c) alphabet
How can you link a c++ program to c functions?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Is there any difference between dlearations int* x and int *x? If so tell me the difference?
What is the C-style character string?
What is the difference between map and hashmap in c++?