PUBLIC SERVICE COMMISSIONS

Global Search Engine

Your Favorite Questions

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

0
A) Both a and c
B) Dangling
C) Smart
D) Null

Correct Answer: B) Dangling

• A Dangling pointer arises when you use the address of an object after its lifetime is over. • It is a highly common and dangerous memory management bug in programming languages like C and C++. • A Null pointer is intentionally designed to point to absolutely Nothing. • Smart pointers automatically and safely manage Memory deallocation.

Advertisement

[ Ad Banner Space ]

Discussion (0)

Discussion mein hissa lene ke liye login karna zaroori hai.

Login / Register

Koi comment nahi. Sab se pehle aap apna comment karein!

Related Questions

Sub Categories

Leave a Reply / Ask a Question