Ignoring programming style and design, is it \"safe\" to call delete on a variable allocated on the stack?
For example:
int nAmount; delete &am
here the memory is allocated using stack so no need to delete it exernally but if you have allcoted dynamically
like int *a=new int()
then you have to do delete a and not delete &a(a itself is a pointer), because the memory is allocated from free store.