Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
What part about them confuses you? I'm no C wizard, but I understand pointers fairly well I think.
-
A variable is a glass that you fill with beer (value). When you want to fill the glass, you point it and fill it with beer. If you want the same beer to another glass you can set the value of the first to second glass. Then you will have two glasses both filled with the same beer.
Now. Imagine the following. You emptied your glass. If you order another without pointers you will get a new glass with the new beer. If you use pointers, you'll get a refill for your glass.
That's just about it. Really. How you write it can be confusing in C so hang in there!! -
ldrago1688yI love them! Sometimes when I am waiting for a build I just move my mouse around and around watching the trail all over. It's pretty.
-
jonjo9448yThink of it like.. I am going to store all my stuff at this address and all the pointer is doing is storing that address so you can remember where it is. All the & does is gives you the address opposed to the value and the * just allows you to point to it.
-
@lostinmyworld
Did you know how many beers i drink just to test the whole concept of pointers and after 10 beers i get very confused.....:)
Related Rants
I hate fucking pointers.
undefined
i can't c how they work
c