What is the usefulness/importance of dynamically allocating memory on the heap? I didn't quite get it from the lesson. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is the usefulness/importance of dynamically allocating memory on the heap? I didn't quite get it from the lesson.

28th Feb 2017, 11:01 AM
Osei-Bonsu Kwaku
Osei-Bonsu Kwaku - avatar
5 Answers
+ 2
when you don't need how much memory your program needs ..use dynamic allocation. like in linked list, you are keep adding nodes in run time then you will have to use dynamic allocation.
28th Feb 2017, 11:39 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
*know how much I can't edit my comments from app, is it happen same with everyone?
28th Feb 2017, 11:48 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
No its not . There's an edit option if u press the three dots in the upper right corner.
28th Feb 2017, 11:53 AM
Osei-Bonsu Kwaku
Osei-Bonsu Kwaku - avatar
+ 1
yes I can see edit and delete option. but when I click to edit..my comments get collapse and I can't see anything to edit.
28th Feb 2017, 12:38 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
then that's unusual
28th Feb 2017, 12:39 PM
Osei-Bonsu Kwaku
Osei-Bonsu Kwaku - avatar