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 

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

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 Algorithms Questions!