C Sharp (C#) - Strings and StringBuilder
Which of the following is the correct way to declare a string variable in C#?
string and text is enclosed in double quotes.string name = "Alice";. String name = 'Alice'; uses single quotes which are for characters, not strings. var name = Alice; misses quotes around text. string name = Alice; misses quotes around text.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions