Complete the code to declare an array of 5 structures named 'students'.
struct Student {
int id;
char name[50];
};
struct Student [1];The correct way to declare an array of 5 structures is to specify the array name followed by the size in square brackets.
Complete the code to access the 'id' of the third student in the array.
int third_id = students[1].id;Array indices start at 0, so the third element is at index 2.
Fix the error in the code to assign the name "Alice" to the first student.
strcpy(students[1].name, "Alice");
The first element in the array is at index 0, so use students[0].
Fill both blanks to declare and initialize the second student's id to 102.
students[1].id [2] 102;
Use students[1] to access the second student and '=' to assign the value.
Fill all three blanks to print the name of the last student in the array.
printf("%s", students[1].[2]); // Array size is [3]
The last student in an array of size 5 is at index 4. The field to print is 'name'.