How many times would you have to call delete to properly fre…
How many times would you have to call delete to properly free all memory allocated by the following? struct MyObject{ int *somedata;}MyObject *someObjects = new MyObject[10];for (int i = 0; i < 5; i++) someObjects[i].somedata = new int[20];
Read Details