I have a dynamic array i declare globally:
double * numbers;
I then initialize inside a function
numbers = new double[TotalNums]
I use this array from the beginning to the end of my program, do I NEED to delete it before exit, or is it just recommended to? I get no errors if i don't and i assume the OS frees up the memory after termination automatically.