C++ Dynamic Memory Allocation is different from that seen in the C. While C uses functions like malloc(), calloc(), realloc() and free() to handle operations based on DMA, C++ also uses all the 4 functions in addition to 2 different operators called new and delete to allocate memory dynamically.
These statements are indicative of the fact that DMA is implemented by the programmer itself. C++ lacks the feature of a garbage collector which automatically helps to free up unnecessary memory space occupied by stagnant garbage values.
It is important to note that the memory is dynamically allocated on the Heap. The non-static memory and local variables get memory allocated on Stack.
Nice!
ReplyDeleteThanks!
Deleteworth reading!!
ReplyDeleteUseful blog for learning programming
ReplyDeletethanks man!!
DeleteInformative
ReplyDeleteIt was worth reading ..... Important information is explained with a lot of simplicity ππππ
ReplyDeletethanks bro...keep motivating!!
Deleteniceπ
ReplyDeleteNice
ReplyDeleteExcellent work! Keep it up
ReplyDeleteThanks for appreciation!
DeleteHelpful post...
ReplyDeleteThis post has made a better coder.
ReplyDeleteGood to hear from you
DeleteGreat work!
ReplyDeleteUseful
ReplyDeleteTop class content. Good read!
ReplyDeleteThanks man!
DeleteGreat work bro����
ReplyDeleteThank bro
DeleteGood explanation π
ReplyDeleteNice work...
ReplyDelete