pointers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

pointers

i cant realy understand where can some1 use a pointer into their program can someone give me an example of where you can use a pointer?

13th Nov 2016, 2:43 AM
Chuck Trollis
Chuck Trollis - avatar
1 Answer
+ 3
In C++, there are two uses of pointers that come to mind. It won't be worthwhile to writw the code, because it is rather lengthy. 1. Pass a pointer into a function, so that the function modifies values outside of itself. 2. Creating a linked list (one that's not set to a particular length)
13th Nov 2016, 2:59 AM
Keto Z
Keto Z - avatar