umar
Freshman
Posts: 2
|
Post by umar on Mar 31, 2023 0:46:08 GMT
What is dangling pointer in C Language
|
|
|
Post by Professor Hank on Mar 31, 2023 0:56:23 GMT
What is dangling pointer in C Language It's a pointer that is pointing to an invalid memory location. For example... int* p = (int*)malloc(4); int* p = q; free(p) q is now a dangling pointer because it is pointing to an invalid memory location.
|
|