Vidyalelo
C# Programming · Q34

Arrays and Strings in C Sharp

Programming · C# Programming · question 34

Q34

What is the result of the expression string[] fruits = "Apple", "Banana", "Orange"; in C#?

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

Answer: Option C

Solution

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