What is the purpose of the 'volatile' keyword in programming languages like…
TPSC Computer/IT Posts 2026
What is the purpose of the 'volatile' keyword in programming languages like C/C++ ?
- A.
Prevents variable optimization by the compiler
- B.
Makes variable constant
- C.
Allocates variable on heap
- D.
Enables multi-threading
Attempted by 329 students.
Sign up free to check your answer
Sign up freeLoading lesson…

