What is the explanation for the dangling pointer in C?
Shathana. S.R. Answered question May 26, 2023
							A dangling pointer in C is “a pointer that points to memory that is no longer valid”. This can occur when a memory block is dynamically allocated, but the pointer to that block is not properly deallocated before the memory is freed.
Shathana. S.R. Answered question May 26, 2023
				
When there is a pointer pointing to a memory address of any variable, but after some time the variable was deleted from the memory location while keeping the pointer pointing to that location is known as a dangling pointer in C.