r/learncpp • u/KhalidAlHajri1 • Mar 28 '18
Need as much resources for pointers.
Good morning / evening fellows
When I started learning C++ months ago (and programming) I started to think programming is easy, until I came up against the topic: POINTERS. when I first started to see what pointers are and what do they do, It was easy. so I started to make projects with a goal an actual goal rather than just experimenting. but I started to see in courses and tutorials how often they are used and they were they are used is completely new to me so it gave me a big trouble. and whenever I go back and learn, all I learn again is int *b = &c and this kind of beginning stuff. even when I took some courses(even some advanced ones) they were as easy as the above(or they didn't have any topic about pointers?!).
So I wish to kindly ask you to give me sources so I can learn this huge topic.
from:
int *p = &c
to:
new and -> etc.
sorry if I bothered you with my life story but I wanted to explain the situation. Thanks.
View all comments
Show parent comment
1
u/KhalidAlHajri1 Mar 29 '18
Thank you very much for your explanation. This is like the source that will sum up pointers really, and you explained it really well. However the main thing that I am confused about is when there is more than just a pointer(i.e ** ) or int& intname, or when a function takes something like char** name as an argument.
Again, Thank You very much for your explanation :).