Question: A software developer is developing a student records module that stores students' college details. The data is represented internally in the student.c module as follows:

A software developer is developing a student records module that stores students' college details. The data is represented internally in the student.c module as follows: struct Student { char name [50]; int id ; double gpa ; }; /* Data declared global, but private to student.c */ int ns = 0; static struct Student *sarr = NULL; 1. Design an API to form the interface to this module. 2. Provide an example of client code that uses the interface from question 1 above to access the private data in a controlled way
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
