Examveda

What is the correct way to declare and initialize a string variable in C#?

A. String str = "Hello";

B. var str = "Hello";

C. string str = "Hello";

D. str = string("Hello");

Answer: Option C


Join The Discussion

Related Questions on Variables and Constants in C Sharp