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

What are pointers

c++

12th Jul 2018, 3:27 PM
manas pandey
manas pandey - avatar
5 Answers
+ 3
manas pandey . A pointer is a variable, that stores the memory location of another variable. example ======= int age = 17; int *agePointer = &age; cout << agePointer ; Output ======= 0x24ff8 something like that
12th Jul 2018, 3:42 PM
Dlite
Dlite - avatar
+ 3
Hello, manas pandey ! This question has a duplicate, since another user already asked this question Please, before posting a question, use the search to prevent duplicate. Good luck! https://www.sololearn.com/Discuss/1373145/?ref=app.
12th Jul 2018, 4:01 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 3
pointer is reference to any address specifiy in the memory
8th Aug 2018, 2:42 PM
Alaa Naeim
Alaa Naeim - avatar
+ 1
Thanks @manas pandey that was really helpful
30th Jul 2018, 1:17 PM
Harry Potter
Harry Potter - avatar
0
Basically a pointer is variable that stores the address of another variable.
30th Jul 2018, 12:19 PM
Pratham Gwari
Pratham Gwari - avatar