Question: Implement a void function called Destroy that has three call-by reference parameters: 1) a dynamic array of book record called LIB: 2) an integer called
Implement a void function called "Destroy that has three call-by reference parameters: 1) a dynamic array of book record called "LIB": 2) an integer called "capacity that holds the total number of cells allocated to "LIB"; and 3) an integer called "count" that holds the number of cells being used in "LIB' The function will set count and capacity to zero and de-allocate all the memory allocated to "LIB and set LIB to NULL (DO NOT COMMENT CODE!)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
