Q21
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
AnswerC.
To specify that a function cannot be overridden
D.
None of the above
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board