In compile time when we create an array it will deleted automatically when function call is over.
But in dynamic memory when we allocate the memory and forget to delete . After that if i run the program again it exist in the heap area or not
Dynamic Memory allocation
hello @Vikaspal,
when u exit the program then allocated memory is released by operating system.
so if u run the program again it will not exist on heap .
@aman212yadav so the manipulation is done when it is in execution whether is its static or dynamic allocation.?
@aman212yadav I mean that if the memory is released by the os after the program is exits when it will statically allocated or dynamics allocated ?
all types of memory will be released by os after program exit.