Embed presentation
Download to read offline

A dangling pointer is a pointer that no longer points to valid data after memory deallocation. For example, when memory is allocated to a pointer and then deallocated using free(), the pointer becomes a dangling pointer. This can lead to undefined behavior if accessed afterwards.
