Question: 2. [Structures] Suppose you have the following structure array for the 50 students in CSE30: struct studentInfo { char *name; unsigned int age; } ;

 2. [Structures] Suppose you have the following structure array for the

2. [Structures] Suppose you have the following structure array for the 50 students in CSE30: struct studentInfo \{ char *name; unsigned int age; \} ; struct studentinfo student [50]; struct studentinfo studentptr = student; Choose the correct way(s) in which you can access the name of the student at index 2 (i.e., student[2]). [4 points] student [2].name studentptr [2]. name (studentptr +2)> name studentptr [2]> name ( studentptr +2)->name ( student +2). name student [2]->name ( student +2)> name

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!