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

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

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!