May someone explain to me the reasons why we “dereference %s” or strings, within a PrintLine?
I don’t understand why we need this or when I need to be using it.
e.g. *
so: …%s), *Index);
This is the google results:
“Dereference a pointer is used because of the following reasons: It can be used to access or manipulate the data stored at the memory location, which is pointed by the pointer . Any operation applied to the dereferenced pointer will directly affect the value of the variable that it points to.”
But I don’t understand:
1: Where this information is stored from, and why its there or how I am to know how to use it (on my own)
2: What is a pointer?
Is this the line the code is from? e.g line 5?
Thanks for your time.