// Inaccessable obj: an dynamic obj without any pointer pointing to it. // Dangling pointer: a pointer that points to a var that has been deallocated #include void main() { int* ptr1 = new int; int* ptr2 = new int; *ptr2 = 44; *ptr1 = *ptr2; ptr1 = ptr2; // causes a memory leak, cannot be deallocated! delete ptr2; // ptr1 becomes a dangling pointer cout << *ptr1; // the result is unpredictable! }