Vidyalelo
C++ Programming · Q21

C++ miscellaneous

Programming · C++ Programming · question 21

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
Answer
C.
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