Interview Questions

Google Technical Interviews in Management round: What are dangling pointers??

Manager Round interview Questions and Answers


(Continued from previous question...)

Google Technical Interviews in Management round: What are dangling pointers??

Solution:
A dangling pointer is a pointer to storage that is no longer allocated. Dangling pointers are nasty bugs because they seldom crash the program until long after they have been created, which makes them hard to find. Programs that create dangling pointers often appear to work on small inputs, but are likely to fail on large or complex inputs.

(Continued on next question...)

Other Interview Questions