8/8/09

What is a dangling pointer?

1 comment:

Raj said...

Dangling points to memory locations which actually doesnt exits
void main()
{
int *p,*q;
p = new int()
q= p;
delete p;
//q will be dangling point in this case, as it is pointing to memory which doesnt exist
}