Pseudo Code:
int n;
cin>>n;
int ar[n];
Why is this not giving an error? And if this is allowed why do we need new and delete operators? The only difference I can think of is that new will allocate the memory in the heap where this will allocate the memory in the stack.