csci3081/class-repo-public/Exercises/dynamicallocation/scratch.cc
Michael Zhang 1ba4536588
f
2018-01-29 17:24:20 -06:00

19 lines
229 B
C++

int staticArray[50000];
void helper() {
int stackArray[30000];
int * heapArray;
heapArray = new int[100000];
}
int main(void) {
int stackArray[25000];
int * heapArray;
heapArray = new int[20000];
helper();
}