Examveda

What is the correct way to declare an array of strings with 5 elements in C#?

A. string[5] names;

B. string[5] names = new string[];

C. string[] names = new string[5];

D. names[] = new string[5];

Answer: Option C


Join The Discussion

Related Questions on Arrays and Strings in C Sharp