what is a pointer? What is the use of it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is a pointer? What is the use of it

19th Jun 2016, 1:39 AM
Muskan gupta
Muskan gupta - avatar
2 Answers
+ 3
A pointer is a variable wich contains a memory address. It's useful in many ways, for example you can pass a whole array to a function just plugging in the parameters a pointer wich points to the first element of that array
19th Jun 2016, 3:07 AM
Francesco Galisi
Francesco Galisi - avatar
0
pointer points on existing variable so you can use the variable in other functions via pointer
19th Jun 2016, 8:54 AM
hrustoid