Pointer is the most important and difficult topic in C programming language. I understand that pointer can point to memory location of another variable. There are many types of pointers such as null pointer, dangling pointer.
I don't understand the difference between NULL pointer and dangling pointer.
If I understand NULL pointer correctly, does it mean that NULL pointer does not point to any memory location and dangling pointer point to the invalid memory location.
What do you think is the difference between a null pointer and a dangling pointer?
I don't understand the difference between NULL pointer and dangling pointer.
If I understand NULL pointer correctly, does it mean that NULL pointer does not point to any memory location and dangling pointer point to the invalid memory location.
What do you think is the difference between a null pointer and a dangling pointer?