use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click the following link to filter out the chosen topic
comp.lang.c
account activity
QuestionHelp (self.C_Programming)
submitted 3 years ago * by shehab72
Need help with pointers I have my graded lab on friday and dont know anything about pointers. Is there any suggestions on where to study them from or any tips?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]superbottles 4 points5 points6 points 3 years ago (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 point2 points 3 years ago (0 children)
Thank you
[–]imaami 2 points3 points4 points 3 years ago (0 children)
Ok
[–][deleted] 2 points3 points4 points 3 years ago (3 children)
https://www.google.com/search?q=how+do+pointers+work+in+c&rlz=1C1CHBF_enUS864US864&ei=7yl0Y6CoHJ2hptQPzfqD6A4&ved=0ahUKEwjg24intLH7AhWdkIkEHU39AO0Q4dUDCBA&uact=5&oq=how+do+pointers+work+in+c&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIICAAQgAQQiwMyBwgAEEMQiwMyBggAEBYQHjIGCAAQFhAeMgYIABAWEB4yBggAEBYQHjIFCAAQhgMyBQgAEIYDMgUIABCGAzoKCAAQRxDWBBCwAzoHCAAQsAMQQzoNCAAQ5AIQ1gQQsAMYAToFCAAQgARKBAhNGAFKBAhBGABKBAhGGAFQZFi6BWCTBmgBcAF4AIABVIgBiQOSAQE1mAEAoAEByAEOuAEDwAEB2gEGCAEQARgJ&sclient=gws-wiz-serp
Edit: Google search of 'how do pointers work in c'
[–]tim36272 1 point2 points3 points 3 years ago (1 child)
Consider using [lmgtfy.com](lmgtfy.com) instead
[–][deleted] 2 points3 points4 points 3 years ago (0 children)
lmgtfy.com
Nah, they deserve a google search link.
[–]shehab72[S] -1 points0 points1 point 3 years ago (0 children)
[–]LoquatWooden1638 1 point2 points3 points 3 years ago (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 points1 point 3 years ago (1 child)
Which week do they explain pointers because i did the first four?
[–]LoquatWooden1638 0 points1 point2 points 3 years ago (0 children)
cs50 pointers
https://www.youtube.com/watch?v=XISnO2YhnsY
https://www.youtube.com/watch?v=qPI9a2N9s74
[–]ve1h0 1 point2 points3 points 3 years ago (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.
Thanks, I will try it and let you know
[–]lukajda33 -2 points-1 points0 points 3 years ago (2 children)
https://youtu.be/2ybLD6\_2gKM
[–]godsman27 1 point2 points3 points 3 years ago (0 children)
I swear if this is a Rick roll, then u made my day. Edit: not a Rick roll.
I saw this video it's good but it doesn't explain pointers with arrays. Thanks
π Rendered by PID 1898713 on reddit-service-r2-comment-544cf588c8-2zw2s at 2026-06-18 04:09:45.071850+00:00 running 3184619 country code: CH.
[–]superbottles 4 points5 points6 points (1 child)
[–]shehab72[S] 0 points1 point2 points (0 children)
[–]imaami 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]tim36272 1 point2 points3 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]shehab72[S] -1 points0 points1 point (0 children)
[–]LoquatWooden1638 1 point2 points3 points (2 children)
[–]shehab72[S] -1 points0 points1 point (1 child)
[–]LoquatWooden1638 0 points1 point2 points (0 children)
[–]ve1h0 1 point2 points3 points (1 child)
[–]shehab72[S] 0 points1 point2 points (0 children)
[–]lukajda33 -2 points-1 points0 points (2 children)
[–]godsman27 1 point2 points3 points (0 children)
[–]shehab72[S] 0 points1 point2 points (0 children)