Vidyalelo
C# Programming · Q31

Variables and Constants in C Sharp

Programming · C# Programming · question 31

Q31

What is the correct syntax to declare a constant in C#?

A.
int MAX_VALUE = 100;
B.
const int MAX_VALUE = 100;
Answer
C.
const MAX_VALUE = 100;
D.
None of the above

Answer: Option B

Solution

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