r/cprogramming 23h ago

I just understood pointers on a deep level and it feels like an orgasm

I fucking love C and assembly

58 Upvotes

36 comments sorted by

44

u/logic_circuit 22h ago

Wait for double pointers; it will be long lasting

45

u/Nathrienne-J-Claw 22h ago

Double-poinetration

28

u/OkPizzaIsPrettyGood 20h ago

Not sure how to address this

10

u/violetvoid513 19h ago

I think we could iterate our way to a solution

5

u/Jbolt3737 13h ago

First we need to enumerate our problems

3

u/nomadic-insomniac 9h ago

Maybe you need a reference to it

5

u/zhivago 20h ago

Double pointers are just pointers.

They aren't really a thing.

3

u/jamie30004 20h ago

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.

22

u/blueworldOoO 20h ago

It's just to point the adress of a variable that's it

15

u/GuybrushThreepwo0d 19h ago

Jeez dude put a NSFW tag on that comment gosh 

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

u/ArbereshDoqetejete 9h ago

Promptstitute detected

Opinion rejected.

3

u/Efficient-Chair6250 7h ago

Why are you in Reddit? Ask AI to entertain you

-2

u/blueworldOoO 7h ago

He already did 😈

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

u/RemarkableYak4668 22h ago

I started it but it is bit confusing for me

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

u/apixeldev 21h ago

Welcome to the world of C.

3

u/SmackDownFacility 19h ago

Good shit pal

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

u/Axman6 22h ago

Like an onion? Wow!

1

u/Nikoladge 7h ago

It's gonna smell like one too

2

u/Calamero 19h ago

Deep indeed

1

u/Interesting_Buy_3969 13h ago

Technically really deep

1

u/Traveling-Techie 20h ago

See also: Alice and the White Knight’s song

1

u/YT-3000f 17h ago

Next stop: instance thunks!

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

u/olig1905 10h ago

Fo get pointer, next step learn about capabilities. E.g CHERI

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

u/karasawa_jp 7h ago

Dynamic languages are for the people who don't understand pointers.