Question:Which of the following is a correct way to declare an array in C#?
A int[] arr = new int[5];
B int arr[5];
C array int arr = new array(5);
D int arr = new int[];
/28
+ Answer
A
+ Explanationint[] arr = new int[5];
Analysis: This is the correct syntax for declaring an array of integers in C#. The other options either use incorrect syntax or are invalid in C#.