Question: need help with c++ conceptual question on deallocating 4. If a double is declared locally from inside of a function called doSomething, when is that
need help with c++ conceptual question on deallocating

4. If a double is declared locally from inside of a function called doSomething, when is that double deallocated? 5. If a double* is declared locally from inside of a function called doSomething, when is that pointer (not anything that it is pointing to, but the pointer itself) deallocated? 6. If a double* is declared locally from inside of a function called doSomething, and it is set to point to an array of doubles allocated using the keyword new, when is that array (not the pointer, but the actual array) deallocated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
