engineering computer science MCQ #2120

What is a dangling pointer?

engineering computer science MCQ #2120

  1. Question 1

    Q1. What is a dangling pointer?

    • A) Pointer to a freed memory location
    • B) Pointer to a valid memory location
    • C) Null pointer
    • D) Pointer to a local variable

    Answer: Pointer to a freed memory location

    Explanation: Dangling pointer points to memory that has been freed or reused. NET computer science MCQs often test this core concept.