Complete the code to declare an integer array named numbers with 5 elements.
int[] numbers = new int[[1]];The code declares an integer array with 5 elements using new int[5].
Complete the code to declare a string array named fruits with 4 elements.
string[] fruits = new string[[1]];The array fruits is declared with 4 elements using new string[4].
Fix the error in the code to declare a double array named values with 3 elements.
double[] values = new double[[1]];The array values must have 3 elements, so the size should be 3.
Fill both blanks to declare a char array named letters with 6 elements and initialize it with default values.
char[] letters = new char[[1]] [2];
The array letters is declared with 6 elements and initialized with empty braces {} to set default values.
Complete the code to declare a boolean array named flags with 4 elements and initialize all elements to false.
bool[] flags = new bool[[1]] { };The array flags is declared with 4 elements and initialized with all elements set to false using braces and values.