What is dynamic mamory?

1 answer

Answer

1129491

2026-02-21 19:20

+ Follow

Dynamic memory refers to memory that is allocated and deallocated during program execution, as opposed to static memory which is allocated at compile time. In C and C++, dynamic memory allocation is done using functions like malloc() and free(), allowing for flexibility in managing memory resources at runtime. However, improper use of dynamic memory can lead to memory leaks or segmentation faults.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.