Wednesday, June 20, 2007

pointers are unique?

Hello everyone,

just a question on pointers:
Assume that you dynamically allocate memory for an object. Sometime
later, you dynamically delete it...
Is there a possibility that another dynamically created object will
take the same memory address as one previously deleted? In that case,
pointers cannot work as IDs of objects, right?

To me it makes sense if there is such a possibility. I'd like your
opinion...

Thanks,
-- George


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to Cpp-Programming@googlegroups.com
To unsubscribe from this group, send email to Cpp-Programming-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Cpp-Programming?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

<< Home