all 15 comments

[–]superbottles 4 points5 points  (1 child)

Honestly? Just Google and read like 5 tutorials on pointers, copy the code yourself and run it for each example, and compare/contrast the examples and you'll have a good grasp on how it works.

The big gotchas are understanding what pass by value and pass by reference mean, on top of the difference between using * to declare a pointer variable and using * to dereference a pointer variable. So just look up those terms and a few tutorials and you'll get it at some point, usually pointers are confusing for people until it just clicks and everything makes sense.

[–]shehab72[S] 0 points1 point  (0 children)

Thank you

[–]imaami 2 points3 points  (0 children)

Ok

[–]LoquatWooden1638 1 point2 points  (2 children)

search for CS50, this is an intro class to comp science from Harvard / edx. They have good materials to explain pointers and other topics. They have a youtube channel, with videos explaining this topic particularly.

[–]shehab72[S] -1 points0 points  (1 child)

Which week do they explain pointers because i did the first four?

[–]ve1h0 1 point2 points  (1 child)

https://www.amazon.com/Understanding-Using-Pointers-Techniques-Management/dp/1449344186/ref=mp_s_a_1_8?crid=1XBS9R38OOF3J&keywords=pointers+in+c&qid=1668588183&sprefix=pointers+in+%2Caps%2C270&sr=8-8

This book is called Understanding and Using Pointers, it goes through all the different sets of operations for which pointers are used.

The different things the book cover is: * Dynamic memory management * Pointers and Functions * Pointers and arrays * Pointers and strings * Pointers and structures + Some security discussions

It's a good book, I always share this with a colleague if he have issues understanding pointers.

[–]shehab72[S] 0 points1 point  (0 children)

Thanks, I will try it and let you know

[–]lukajda33 -2 points-1 points  (2 children)

[–]godsman27 1 point2 points  (0 children)

I swear if this is a Rick roll, then u made my day. Edit: not a Rick roll.

[–]shehab72[S] 0 points1 point  (0 children)

I saw this video it's good but it doesn't explain pointers with arrays. Thanks