Plzzz some one help here🙇 Pointers that are left pointing to non-existent memory locations are called dangling pointers. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Plzzz some one help here🙇 Pointers that are left pointing to non-existent memory locations are called dangling pointers.

Is this dangling pointers are responsible for strucking(Hanging) of Devices While performing any big tasks...? i.e some times mobile can not open some memo apps.! Hanging is it because This undelete pointers? if not what all the harm causes by these dangling ptrs...? plzzzz some help on this

30th Mar 2017, 2:26 PM
Anjaneya Karjigi
Anjaneya Karjigi - avatar
2 Answers
+ 6
They don't cause a problem as long as they are not furtherly called to perform some action. The main issue is that most of the time they ARE called, motivating a memory corruption and hence an error or a crash. If you're using a PC with Windows, here's an analogy: you may think that a pointer is kind of a shortcut in your desktop, which indeed references a program. If you delete the program, the shortcut itself points to "nothing", and then the shortcut is useful no more.
30th Mar 2017, 2:50 PM
Álvaro
0
Man...... then why some times Mobile s will goes to Hang of stages..? even all memory space is empty...!
30th Mar 2017, 3:18 PM
Anjaneya Karjigi
Anjaneya Karjigi - avatar