Examveda

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

A. MESSAGE const = "Hello";

B. const string MESSAGE = "Hello";

C. const MESSAGE = "Hello";

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Basic Syntax and Data Types in C Sharp