delete()

why delete cannot be applied to pointers that were created on stack. :)

with regards,
vishnu k.
because there is no memory to free up.

memory is only allocated on the heap with new or malloc.
Last edited on
Topic archived. No new replies allowed.