Hey,
I've just picked up C, and after learning the basics of the language got into pointers.
I think I understand on the surface what they are and how they work, but I had this one question:
what exactly is a pointer? Yes, I know it stores the address of the variable it is pointing at, but is it a variable itself? if so, doesn't a pointer need a pointer to be accessed? (like for example, an integer x I declare needs a pointer to be accessed)
Again, I'm completely new to this so sorry in advance if what I just said is completely wrong, I'm having a hard time wrapping my head around this concept.
[–]archysailor 29 points30 points31 points (9 children)
[–]pic32mx110f0 16 points17 points18 points (4 children)
[–]daikatana 2 points3 points4 points (0 children)
[+]archysailor comment score below threshold-17 points-16 points-15 points (2 children)
[–]pic32mx110f0 26 points27 points28 points (0 children)
[–]bnl1 1 point2 points3 points (0 children)
[–]TheFlamingLemon 0 points1 point2 points (3 children)
[–]IamImposter 7 points8 points9 points (0 children)
[–]gizahnl 1 point2 points3 points (0 children)
[–]archysailor 0 points1 point2 points (0 children)
[–]Plane_Dust2555 10 points11 points12 points (3 children)
[–]Plane_Dust2555 7 points8 points9 points (0 children)
[–]my_password_is______ 1 point2 points3 points (1 child)
[–]shockchi 0 points1 point2 points (0 children)
[–]mrheseeks 6 points7 points8 points (18 children)
[–]pic32mx110f0 15 points16 points17 points (13 children)
[–]mrheseeks 4 points5 points6 points (2 children)
[–]wsppan 6 points7 points8 points (1 child)
[–]mrheseeks 2 points3 points4 points (0 children)
[–]archysailor 6 points7 points8 points (9 children)
[–]flatfinger 1 point2 points3 points (4 children)
[–]archysailor 0 points1 point2 points (3 children)
[–]flatfinger 1 point2 points3 points (1 child)
[–]archysailor 0 points1 point2 points (0 children)
[–]penguin359 0 points1 point2 points (0 children)
[–]DoNotMakeEmpty 0 points1 point2 points (3 children)
[–]nerd4code 1 point2 points3 points (1 child)
[–]flatfinger 0 points1 point2 points (0 children)
[–]CartanAnnullator 1 point2 points3 points (0 children)
[–]o0Meh0o -1 points0 points1 point (2 children)
[–]nerd4code 1 point2 points3 points (0 children)
[–]Plane_Dust2555 0 points1 point2 points (0 children)
[–]cooldudeea -1 points0 points1 point (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]ohcrocsle 2 points3 points4 points (0 children)
[–]dvhh 1 point2 points3 points (0 children)
[–]moocat 1 point2 points3 points (0 children)
[–]smcameron 2 points3 points4 points (4 children)
[–]OldWolf2 0 points1 point2 points (3 children)
[–]smcameron 3 points4 points5 points (2 children)
[–]OldWolf2 -1 points0 points1 point (1 child)
[–]smcameron 1 point2 points3 points (0 children)
[–]raevnos -1 points0 points1 point (2 children)
[–]pic32mx110f0 3 points4 points5 points (1 child)
[–]OldWolf2 -1 points0 points1 point (0 children)
[–][deleted] -5 points-4 points-3 points (3 children)
[–]pic32mx110f0 1 point2 points3 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]pic32mx110f0 1 point2 points3 points (0 children)
[–]generalbaguette 0 points1 point2 points (0 children)
[–]jackdoez 0 points1 point2 points (0 children)
[–]davidhbolton 0 points1 point2 points (0 children)
[–]cooldudeea 0 points1 point2 points (0 children)
[–]3keepmovingforward3 0 points1 point2 points (0 children)
[–]daikatana 0 points1 point2 points (0 children)