Question: 3. (10pt) Dynamic structure. Now you are asked to write a function that can create a copy of this given Make sure your copy function

 3. (10pt) Dynamic structure. Now you are asked to write a

function that can create a copy of this given Make sure your

3. (10pt) Dynamic structure. Now you are asked to write a function that can create a copy of this given Make sure your copy function deals with different number of courses (numc). p)IDynamic Memory Allocation) Suppose somehow we have already created the below A data structure. oldSchedule t0) numc COUurses "CS 3333" "Korkmaz" start end cs 2123" 2 "Korkmaz" [o 9:00" "9:50" (11 "10:00" "10:50O (21 "11:0o" "11:503 NULL t01 r 11 12) C 4333 ABC "NPB 1.226" CS 4433" KLM" "NPB 1.226 "CS 4443" "XYZ" typede f struct courseT "MB 1.22" char code [8]; char inst [20 //instructor char room [10: ) courseT; typedef struct scheduleT ( char start[6; char end [ 6]; int numc; Iumber of courses courseT courses ) scheduleT; int main (void) scheduleT *oldSchedule, newSchedule int numofTimeslots3; /* suppose somehow we created the above data structure pointed by oldSchedule* newSchedule = CopySchedule (oldSchedule, numOfTime slots) /* You are asked to just implement this function in the next page /* You are allowed to use any standard library functions that you may need

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