Question: It is intended that the AllocMem function shown below dynamically creates an integer array of some user-specified size and returns the address of the dynamic

It is intended that the AllocMem function shown below dynamically creates an integer array of some user-specified size and returns the address of the dynamic array to the calling function through the pointer argument. Will the function work as intended? Correct it if your answer is no. Re-write the AllocMem function (the corrected version if correction is needed) in Question 12 as a function template so that it can be used to create a dynamic array of any type
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
