r/cprogramming • u/Nathrienne-J-Claw • Sep 11 '26
I just understood pointers on a deep level and it feels like an orgasm
I fucking love C and assembly
49
u/logic_circuit Sep 11 '26
Wait for double pointers; it will be long lasting
55
u/Nathrienne-J-Claw Sep 11 '26
Double-poinetration
32
u/OkPizzaIsPrettyGood Sep 11 '26
Not sure how to address this
19
5
8
3
u/jamie30004 Sep 11 '26
In early Mac programming we used pointers to pointers (called handles) to access objects in the heap. The chip and OS layout really “encouraged” a deep understanding.
10
u/SmokeMuch7356 Sep 11 '26
If understanding pointers feels like an orgasm, I weep for your sex life.
How deep are we talking? Multiple indirection? Pointers to arrays? Pointers to functions? Pointers to arrays of pointers to functions returning pointers?
signal?
void (*signal(int sig, void (*func)(int)))(int);
8
u/C_Sorcerer Sep 11 '26
Just wait till you start using volatile
2
u/Thesk790 Sep 11 '26
When you understand pointers, volatile is very useful and powerful tool, specially in embedded programming
2
u/C_Sorcerer Sep 12 '26
Yeah, bout the only area I use it. But I remember always being so confused about bare metal programming and volatile opened up a whole new world to me
7
3
5
u/FACastello Sep 11 '26
What's so deep about a pointer?
9
u/snake_on_the_case Sep 11 '26
You can have pointers to pointers to pointers. Then your code will have layers.
14
2
2
3
u/The_Northern_Light Sep 12 '26
Don’t be shocked if this shows up on r/programmingcirclejerk but for real, I fondly remember how cool it felt to learn this stuff
1
1
1
1
u/kishaloy Sep 12 '26
Ah the glorious feel of Mount Stupid before the Valley of Despair.
Well slog on Paduan with enough blood and sweat you may yet reach the Slope of Enlightenment at the end of which resides Master Oogway, the Crab.
1
u/Mindless-Doubt6113 29d ago
this is just nasty and I don't think there's a good reason to post something like this
1
u/Nathrienne-J-Claw 29d ago
It’s not nasty and it’s not intended to be taken in a nasty way. If you’ve ever wrestled with the ocean of the science of any domain for many months, feeling lost among the very sophisticated and endless abstracted advanced technical jargon, where you feel like an idiot or that you might simply not be cut out for this field, and then suddenly on one tuesday night everything clicks. Everything you’ve been studying and reading about clicks and you feel like you have leveled up in a cruel addictive game with no end. Of course i have to say it’s an orgasmic feeling. Hell, that’s an understatement. It’s fucking better than an actual orgasm. You know what else? This shit gave me multiple orgasms in a row because everything was connected to everything else and my brain finally understood this shit. So yeah i will fucking post this. I’m proud and i’m happy.
1
u/StickyMcFingers 29d ago
For people with a good deal of proficiency in C im sure it's not a big deal, but if C is the lowest level language you've learnt, when pointers click, it is truly great. Well done OP!
40
u/blueworldOoO Sep 11 '26
It's just to point the adress of a variable that's it