Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started