I have tried searching internet a little bit and found some useful information about the command
I just wonder about a few things as I would like an array to "constantly" be redefined in size. When using it in one part of my program, it will be defined in one way. When using it in another part, it will be defined in another way.
Ultimately, in my program, this may be done thousands of times.
The reason why I want to use one variable for this is simply the enormous memory needed and lack of ability to make reuseable code if defining many different arrays.
I just wonder if it is "ok" to define the length of an array like this many times.
Should I somehow free the allocated memory before re-defining the length of the "new" array?
Any information about this issue would be greatly appreciated.