Vidyalelo
C# Programming · Q4

Miscellaneous in C Sharp

Programming · C# Programming · question 4

Q4

What is the purpose of the "readonly" keyword in C#?

A.
To declare a constant
B.
To prevent a variable from changing
Answer
C.
To allow a variable to be changed
D.
To declare a static variable

Answer: Option B

Solution

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