Now the opposite question in general when is it better to al

Now the opposite question: in general, when is it better to allocate an object dynamically on the heap (as opposed to the statically on the stack)? Give an example of a programming scenario where an object should certainly be heap-allocated.

Solution

Hi,

This question has already been answered in Chegg. Here is the link for reference:

http://www.chegg.com/homework-help/questions-and-answers/c-questions-general-better-allocate-object-statically-stack-opposed-dynamically-heap-give--q10377305

Pls let me know if you need any further information.

Now the opposite question: in general, when is it better to allocate an object dynamically on the heap (as opposed to the statically on the stack)? Give an exam

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site