Skip to content
Sign in
Computer PMSPPSC

The ______ pointer arises when you use the address of an object after its lifetime is over.

Tap an option to check the answer. You can also press A–D.

Show answer

Correct answer: C) Dangling

• In advanced programming languages like C and C++, a Dangling pointer points to memory that has already been freed. • This dangerous memory bug occurs when an object's lifetime ends, but the pointer still references that memory location. • Accessing a dangling pointer frequently leads to unpredictable software crashes or critical security vulnerabilities. • Null pointers, by contrast, explicitly point to nothing and are intentionally initialized for safety.
Explanation
• In advanced programming languages like C and C++, a Dangling pointer points to memory that has already been freed. • This dangerous memory bug occurs when an object's lifetime ends, but the pointer still references that memory location. • Accessing a dangling pointer frequently leads to unpredictable software crashes or critical security vulnerabilities. • Null pointers, by contrast, explicitly point to nothing and are intentionally initialized for safety.