Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
Abdul Sami I'll do my best to explain the concept of pointers because I'm not a C programmer. Essentially, a pointer is a memory location of something else. For example, an integer holds an integer value, but an integer pointer holds the memory location of an integer value. To get the item that your pointer is pointing to, you must "dereference" it (just a fancy way of saying this) In general, references are considered a better alternative to pointers. A "dangling pointer" is a pointer that points to the memory location of something that has been modified, relocated or deleted, essentially pointing to a nonexistent memory location. Hopefully this answered your question :)
15th Jan 2020, 2:01 PM
lgr :/
lgr :/ - avatar