I\'m new to C++, and I\'m confused about arrays and pointers. Could someone tell me how I can properly delete a pointer. Like for example,
int *foo; foo = ne
If you do new [] you must do delete []. It's a simple enough rule, and worth remembering.
new []
delete []