Vidyalelo
C# Programming · Q7

Variables and Constants in C Sharp

Programming · C# Programming · question 7

Q7

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

A.
To make a variable constant
B.
To make a variable accessible outside its class
C.
To make a variable read-only
Answer
D.
To make a variable static

Answer: Option C

Solution

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