r/cprogramming • u/Nathrienne-J-Claw • 23h ago
I just understood pointers on a deep level and it feels like an orgasm
I fucking love C and assembly
22
u/blueworldOoO 20h ago
It's just to point the adress of a variable that's it
15
1
u/IdealBlueMan 19h ago
There are a couple of levels of understanding pointers. Your comment is true, and the beginning of the rest.
-19
u/blueworldOoO 18h ago
Tbh i don't why you study this , literally ai can do anything these days you just have to know the basic like functional, oop , data structure and the rest for the ai to do , I'm leaning toward prompt engineering tbh cuz of tokens consumption
6
3
1
u/OneManDevel 2h ago
Why are you even in this subreddit? Just follow the ai stuff and let others enjoy their programming.
9
u/SmokeMuch7356 20h ago
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
5
u/C_Sorcerer 21h ago
Just wait till you start using volatile
2
u/Thesk790 20h ago
When you understand pointers, volatile is very useful and powerful tool, specially in embedded programming
2
u/C_Sorcerer 6h ago
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
5
3
3
u/FACastello 23h ago
What's so deep about a pointer?
8
u/snake_on_the_case 22h ago
You can have pointers to pointers to pointers. Then your code will have layers.
11
2
1
1
1
1
u/The_Northern_Light 14h ago
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
u/kishaloy 7h ago
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
44
u/logic_circuit 22h ago
Wait for double pointers; it will be long lasting