Question: What is the difference between these two allocations/deallocations, what will and/or will not take place? // Using a C memory allocator LinkedBag *bag_ptrA = malloc(sizeof(LinkedBag
What is the difference between these two allocations/deallocations, what will and/or will not take place?
// Using a C memory allocator
LinkedBag
free(bag_ptrA);
// Using the C++ memory allocator
LinkedBag
delete bag_ptrB;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
