C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priya.sharma
    Senior Member
    • Aug 2016
    • 105

    C++

    What is a dangling pointer??
  • Guest

    #2
    A pointer initially holding valid address, but later the held address is released or freed. Then such a pointer is called as dangling pointer.

    Comment

    • shilparana
      Senior Member
      • May 2015
      • 194

      #3
      A dangling pointer is a pointer that points to invalid data or to data which is not valid anymore.

      Comment

      • Swati walia
        Senior Member
        • Sep 2016
        • 108

        #4
        Dangling pointers arise when an object is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the deallocated memory.

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎