Auto pointer is nothing but, Proper memory management ( memory Allocation and deallocation).In C++ there is class template "auto_ptr" this is good example for auto pointer. Only we need to a...
Advantages:* Increasing the programming performance , Using pointers we can able to access the variables faster* Dynamic memory management * Data structure handling (Linkedlist, Stack ,Queue, Data dictionary,....)* File management using FILE pointer
u want advantage 1)can return more then 1 value from a function2)no need to pass the entire object to a function..can pass just the address3)if we want our object to be modify by some function th...
Dangling pointer leads the memory leak problems. The following circumstances are memory leak ( dangling pointers ), not for good programming practice , try to avoid1) Try to avoid the empty object poi...
Ashwan
Jul 26th, 2007
Dangling Pointer is a pointer pointing to either unallocated memory area or to the area that has already been freed. In simple words, Dangling pointer is the one that points no-where.