Complete the code to declare an array of 5 integers.
int numbers[[1]];The array size must be 5 to hold exactly 5 integers.
Complete the code to access the third element of the array.
int third = numbers[[1]];Array indexes start at 0, so the third element is at index 2.
Fix the error in the code to avoid accessing out of bounds.
for (int i = 0; i < [1]; i++) { printf("%d\n", numbers[i]); }
The loop should run while i is less than 5 to stay within array bounds.
Fill both blanks to create an array of 4 integers and assign 10 to the last element.
int arr[[1]]; arr[[2]] = 10;
The array size is 4, so the last element index is 3 (since indexing starts at 0).
Fill all three blanks to declare an array of 6 integers, assign 20 to the first element, and print it.
int nums[[1]]; nums[[2]] = 20; printf("%d\n", nums[[3]]);
The array size is 6. The first element is at index 0, so assign and print nums[0].
