– For each of the following statements, please: ▪ Explain thestatement in 5 or more sentences. And ▪ Create a code experiment todemonstrate our understanding.
1. Deleting the same memory twice: This error can happen whentwo pointers address the same dynamically allocated object. Ifdelete is applied to one of the pointers, then the object’s memoryis returned to the Free-store. If we subsequently delete the secondpointer, then the Free-store may be corrupted.
2. Use smart pointers… Objects that must be allocated with new,but you like to have the same lifetime as other objects/variableson the Run-time stack. Objects assigned to smart pointers will bedeleted
PayPal Gateway not configured
PayPal Gateway not configured