Q41
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";
AnswerD.
str = string("Hello");
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board