Original Post
Hello all, I am slightly unsure of which direction to take. I have a large array which will contain data pulled from a file. Like always, I proceeded to declare this array:
Quote:Then I remembered some code that I saw in a tutorial:
int array[1000];
Quote:I read up on it and it seems that dynamic memory goes on the heap, while static memory goes on the stack. I also learned that the heap is much larger than the stack. So my question is, which of the above methods is the best? And please correct me if I'm wrong on my new found knowledge. Thank you. Adam
int *array; array = new int[1000];