A student has more than one number: an id and marks. Keep them in one struct.
A Student record keeps more than one fact about the same person: an id and a mark. Brace initialization {1, 90} fills those fields in declaration order.
1
90
s
1 90
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. Output:
id and marks.
2. {1, 90} fills fields in:
Initializer list.
3. A Student is one object so that:
Grouping.
4. Array of Student is:
Many records.
5. s.marks vs s->marks:
-> for pointers.