Vidyalelo
C# Programming · Q32

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 32

Q32

Which of the following is a valid way to declare a constant string in C#?

A.
MESSAGE const = "Hello";
B.
const string MESSAGE = "Hello";
Answer
C.
const MESSAGE = "Hello";
D.
None of the above

Answer: Option B

Solution

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