Search:

Type: Posts; User: sangit

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,536

    memory leak causes because of loosing the access...

    memory leak causes because of loosing the access path of it through the pointer,which was previously pointing to that location and now its value is changed. In other words, the pointer which was...
  2. Replies
    11
    Views
    1,536

    Memory Leak

    Can anybody please tell me how memory leaks and dangling pointers are two aspects of the same problem?

    Thanks
  3. Replies
    11
    Views
    1,536

    Memory Leak question

    Rewrite the following statements accurately and explain why the given version is inaccurate and your version is accurate

    "Dereferencing memory leaks leads to dangling pointers.”

    Can somebody...
  4. Replies
    16
    Views
    8,246

    sorry, still confused little bit.. Now my...

    sorry, still confused little bit..
    Now my understading is deallocating a pointer does not avoid dangling pointer because pointer value is not changed yet. after deallocation setting the pointer...
  5. Replies
    16
    Views
    8,246

    Thank you so much

    Thank you so much
  6. Replies
    16
    Views
    8,246

    So 'deallocating a pointer' means setting...

    So 'deallocating a pointer' means setting pointer's value to NULL?

    Thanks
  7. Replies
    16
    Views
    8,246

    My understanding of dangling pointer is,'when ...

    My understanding of dangling pointer is,'when the memory to which pointer is pointing to, is deallocated then the pointer becomes dangling. Pointer also becomes dangling when you try to dereference...
  8. Replies
    16
    Views
    8,246

    deallocate pointer

    My question is, if the following sentence is true or false? why?

    “It is important to deallocate a pointer to avoid dangling pointers.”

    Thanks
Results 1 to 8 of 8