Examveda

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

A. const MESSAGE = "Hello";

B. MESSAGE const = "Hello";

C. const string MESSAGE = "Hello";

D. string MESSAGE = "Hello";

Answer: Option C


Join The Discussion

Related Questions on Variables and Constants in C Sharp