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 |
How does throwing and catching exceptions differ from using setjmp and longjmp?
What is the difference between interpreters and compilers?
What is an accessor in c++?
What are proxy objects in c++?
Is swift better than c++?
What is a storage class?
How to stop conversions among objects?
If I is an integer variable, which is faster ++i or i++?
How can a called function determine the number of arguments that have been passed to it?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Give 10 points of differences between C & C++.
Can a constructor throw a exception? How to handle the error when the constructor fails?