hi , here i have some difficulty.. below is a code i wrote.#include
cout<<"enter the no";
int *p=new int[n];
i was trying to learn "new" and "delete" .this is giving the output whatever i am inputting.but if u look i have usued "delete p" before printing.so memory is lost. then how it could give the output?