The pointer method is what I would normally use:
Code:
int * random_array = new int[n];
But for the assignment we were told not to use pointers, I was just interested in knowing why I had points taken off.
It is interesting to know that the C99 standard allows it, however, since I learned C first.
Thanks guys, you answered my question.