Is the below statement right or wrong? Please give me practically really what happens, as I am confused about this theory.
In the case of dynamically allocating static array, we have to deallocate the memory manually, but in the case of the dynamic array, memory gets deallocated automatically.
I tried ChatGPT and it said the statement was wrong. We have to manually deallocate the memory in dynamic array, but I don’t think so.
New contributor
TeChY Siddhesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2