Vidyalelo
C# Programming · Q24

Arrays and Strings in C Sharp

Programming · C# Programming · question 24

Q24

What is the result of the expression string[] names = "John", "Alice", "Bob"; in C#?

A.
A compilation error
B.
Declares an array with three elements
Answer
C.
Initializes an empty array
D.
Initializes an array with three elements

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board