I need to create a new array every time i run a method.
I need to make a brand new array every time I run the method below.
I did some checking and found out every time I run the method the array uses the same memory location making me think it is actually the same array. I was wondering if anyone could please tell my on how I could make a new dynamic array every time I run the method.Code:int Solve::whereAmI(GridSpot finalArray[]){ //then in here I mess with the array then do some recursion whereAmI(finalArray); }
Thank You
-Mason