Vidyalelo
C# Programming · Q30

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 30

Q30

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

A.
constant MAX_VALUE = 100;
B.
MAX_VALUE = 100;
C.
int MAX_VALUE = 100;
D.
const int MAX_VALUE = 100;
Answer

Answer: Option D

Solution

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