8.7k views
5 votes
Given the following code fragment, what is the data type of roster[9] .name? struct student { string name; double gpa; }; student thisStudent; student roster[50]; string const pointer to student student double

1 Answer

6 votes

roster[50] is an array of "students", so roster[9] is a "student". Therefore, roster[9].name is a string.

User Pasaba Por Aqui
by
8.6k points