Question: 4 ] Write a program with an array of structures: Each structure should store: last name, first initial, GPA, and total number of credit hours
Write a program with an array of structures: Each structure should store: last name, first initial, GPA, and total number of credit hours taken by a student. Choose appropriate types for each! The array should be able to hold information for up to students. Initialize the first two array elements with the following info:o DoeJ o Smith K Initialize the last array element with:o Aaaa B Display the three records above on the screen Modify the program from # above array of structures by introducing a pointer to a stucture, named structPtr. Initialize structPtr to point to point to the first structure in the array. Print the first structure using structPtr instead of the array name. Move structPtr forward so it points to the second structure in the array usingo Array notationo Pointer notationWhich syntax is simpler? A: Leave the simpler version in the code, and comment out the other. Print the second structure using structPtr instead of the array name.
Solve for code blocks not c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
