A Pointer in C Programming is used to point the memory location of an existing variable. In case if that particular variable is deleted and the Pointer is still pointing to the same memory location, then that particular pointer variable is called as a Dangling Pointer Variabl
Vishalini.R Answered question June 26, 2023
A dangling Pointer occurs when a pointer pointing to a variable exits the scope or when the memory of an object/variable is deallocated. Furthermore, the presence of Dangling Pointers can result in unanticipated errors during program execution, thus we must take care to avoid them when writing code.
Vishalini.R Answered question June 26, 2023
