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)

C# Interview Questions and Answers,You Need To Know

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Why do we use Async and Await in C#?... >>
<< How do short-circuited operators work?...