Question: c) Write 'C' code that defines a structured type called lecturerStruct with members that store the name of the lecturer as a character array,
c) Write 'C' code that defines a structured type called lecturerStruct with members that store the name of the lecturer as a character array, the number of modules taught by the lecturer as an integer, the names of the modules taught by the lecturer as a pointer to an array of strings and the number of students taking each module as an array of integers. Write a function called deleteLecturer that accepts a pointer to a lecturerStruct instance and frees all of the memory associated with the structure. (12 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
