Question: Using a program trace work out the contents of the stu array at the end of the code snippet below. struct Person { char name[20];

Using a program trace work out the contents of the stu array at the end of the code snippet below.

struct Person { char name[20]; float gpa ; }

stu[ ] = {

{ "Jack", 3.11 },

{ "Adam", 2.78 }

},

*ps = stu;

(ps++)->gpa = 3.15 ;

ps->gpa = 2.88 ;

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!