Examveda

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

C. Initializes an empty array

D. Initializes an array with three elements

Answer: Option B


Join The Discussion

Related Questions on Arrays and Strings in C Sharp