Q:

What is the “volatile” keyword used for?

0

What is the “volatile” keyword used for?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

A  volatile keyword tells the compiler that the value of a variable must never be cached as its value may change outside of the scope of the program itself. The compiler will then avoid any optimizations that may result in problems if the variable changes “outside of its control”.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now