C++ Programmer Question:

Do you know the purpose of the keyword volatile?

C++ Programmer Interview Question
C++ Programmer Interview Question

Answer:

Declaring a variable volatile directs the compiler that the variable can be changed externally. Hence avoiding compiler optimization on the variable reference.


Previous QuestionNext Question
Tell me what is this pointer?Tell me what is an abstract class in C++?