I understood all the concept in c++ till function but I didn't understand the concept of pointer; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I understood all the concept in c++ till function but I didn't understand the concept of pointer;

Can you explain it to me? I am in 10th Std and I am getting ready for my 11th Std . I am just a starter.

2nd Jun 2019, 4:59 AM
Ayush Sharma
Ayush Sharma - avatar
15 Answers
+ 3
2nd Jun 2019, 5:30 AM
Dharmik Pajwani
Dharmik Pajwani - avatar
+ 2
~Swim~ .Does this mean that for example if i forgot a value of variable I can reveal it through pointers right ?
14th Jun 2019, 8:55 AM
The unknown 321
The unknown 321 - avatar
+ 2
Thanks a lot for your helpful explanation. The thing that confused me was 0x23fe4c. This random code really confused me because I didn't understand it.
14th Jun 2019, 7:34 PM
The unknown 321
The unknown 321 - avatar
+ 2
Alright. Again thank you so much for your awesome explanation.
14th Jun 2019, 7:42 PM
The unknown 321
The unknown 321 - avatar
+ 1
Basically,A poonter is just a normal variable.The only difference is that it dosen't hold a value but the ADDRESS of another variable's value(of the same data type). Try this,it is the best explaination I found: https://youtu.be/iChalAKXffs
2nd Jun 2019, 5:48 AM
Devesh Sharma
Devesh Sharma - avatar
+ 1
~ swim ~ How did you post that long answer in 1 post?
3rd Jun 2019, 1:55 PM
Seb TheS
Seb TheS - avatar
+ 1
Sorry I meant ~swim~
14th Jun 2019, 9:03 AM
The unknown 321
The unknown 321 - avatar
+ 1
Thanks for the explanation. But what is the use of these pointers. From what I understood. It's something related to memory. Is it right ?
14th Jun 2019, 9:48 AM
The unknown 321
The unknown 321 - avatar
+ 1
I searched for pointers and again as they said. It's something related to memory. What I need to understand is what memory do they mean ? Is it something related to storage ?
14th Jun 2019, 9:56 AM
The unknown 321
The unknown 321 - avatar
+ 1
What I mentioned above. I don't know so much about memory.
14th Jun 2019, 10:19 AM
The unknown 321
The unknown 321 - avatar
+ 1
The link didn't solve my problem at all. I still didn't understand pointers. If you know about memory can you please explain it to me and pointers too ?
14th Jun 2019, 6:07 PM
The unknown 321
The unknown 321 - avatar
+ 1
I knew what I mentioned above that it is related to storage only. That's what i know 😅
14th Jun 2019, 6:16 PM
The unknown 321
The unknown 321 - avatar
+ 1
I understood everything except program memory which is allocated from ram by the os.
14th Jun 2019, 6:30 PM
The unknown 321
The unknown 321 - avatar
+ 1
Where would I find it ? The best answer ?
14th Jun 2019, 7:22 PM
The unknown 321
The unknown 321 - avatar
0
A pointer is a variable, with the address of another variable as its value. In C++, pointers help make certain tasks easier to perform. Other tasks, such as dynamic memory allocation, cannot be performed without using pointers.
26th Jul 2019, 5:39 PM
Mubeen Shaikh
Mubeen Shaikh - avatar