I have a very large array which must be 262144 elements in length (and potentially much larger in future). I have tried allocating the array on the stack like so:
The reason the first try didn't work is that the syntax is incorrect. Try this:
int *myArray = new int[SIZE];