What is the purpose of the volatile keyword in C++?
A. To specify that a variable's value cannot be changed once initialized
B. To indicate that a variable may be changed unexpectedly by hardware or another thread
C. To specify that a function cannot be overridden
D. None of the above
Answer: Option B

Join The Discussion