Vidyalelo
C# Programming · Q35

Variables and Constants in C Sharp

Programming · C# Programming · question 35

Q35

What is the purpose of the 'volatile' keyword in C#?

A.
To define a constant
B.
To make a variable accessible outside its class
C.
To make a variable read-only
D.
To indicate that a variable's value can be modified by multiple threads concurrently
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board