Does a dynamic array deallocate memory automatically after the program ends, compared with dynamically allocated static memory?
Is the below statement right or wrong? Please give me practically really what happens, as I am confused about this theory.