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
Get step-by-step solutions from verified subject matter experts
