+ 1

There is a called function and i allocate memory at run time there and i return pointer

so i will have access in all memory what i created or it will be destroyed beacuse i know dynamic memory allocation in in heap not in stack then ????????

15th Oct 2019, 1:44 PM
simi sam
simi sam - avatar
1 ответ
+ 3
It won't be "destroyed" unless you free the memory
15th Oct 2019, 1:58 PM
Abhishek Tandon
Abhishek Tandon - avatar