+ 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.
27 Respuestas
+ 3
https://www.sololearn.com/discuss/199279/?ref=app
Hope this helps you. 😊 🙂
+ 2
~Swim~ .Does this mean that for example if i forgot a value of variable I can reveal it through pointers right ?
+ 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.
+ 2
Alright. Again thank you so much for your awesome explanation.
+ 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
+ 1
~ swim ~ How did you post that long answer in 1 post?
+ 1
Sorry I meant ~swim~
+ 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 ?
+ 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 ?
+ 1
What I mentioned above. I don't know so much about memory.
+ 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 ?
+ 1
I knew what I mentioned above that it is related to storage only. That's what i know 😅
+ 1
I understood everything except program memory which is allocated from ram by the os.
+ 1
Where would I find it ? The best answer ?
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.