A class is an array of Student. Index then dot: class[1].marks.
A class is a row of Student records. Index first, then the field: class[1].marks is “the second student’s score.” Arrays of structs are how tables live in memory.
first
second
80
Each step highlights the matching C line. Program output appears only when a line that prints actually runs.
Five questions. Pick one answer each, then Check answers. The correct choice turns green.
1. c[1].marks is:
Second student.
2. Index of the first student is:
Zero-based array.
3. c[1] is:
One struct.
4. To print every marks column you would:
Loop + dot.
5. This is different from int marks[2] because:
Several fields per row.