Examveda

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

A. To declare a constant

B. To prevent a variable from changing

C. To allow a variable to be changed

D. To declare a static variable

Answer: Option B


This Question Belongs to C Sharp Programming >> Miscellaneous In C Sharp

Join The Discussion

Related Questions on Miscellaneous in C Sharp