Examveda

What is the correct syntax to initialize an array in C#?

A. int numbers[] = {1, 2, 3, 4, 5};

B. int[5] numbers;

C. int[] numbers = new int[5];

D. int[5] numbers = {1, 2, 3, 4, 5};

Answer: Option C


Join The Discussion

Related Questions on Arrays and Strings in C Sharp