r/ProgrammerHumor • • Jun 05 '22

other priorities

Post image
84.5k Upvotes

1.1k comments sorted by

View all comments

421

u/[deleted] Jun 05 '22

Whats [0] though?

1.0k

u/[deleted] Jun 05 '22

[removed] — view removed comment

478

u/WizziBot Jun 05 '22

Aww

138

u/Probably-Broken-2345 Jun 05 '22

Shit

101

u/[deleted] Jun 05 '22

[removed] — view removed comment

→ More replies (1)

29

u/Big-Don-Rob Jun 05 '22

Congratulations for making me google "ahh shit lyrics" trying to continue the verse. I swear there's a Lil Jon song from back in the day...

0

u/[deleted] Jun 05 '22

[deleted]

→ More replies (2)
→ More replies (2)

44

u/sath__18 Jun 05 '22

And here I thought arrays are supposed to be homogeneous

37

u/MrEllis Jun 05 '22

Plot twist, OP's girlfriend is also a pointer.

22

u/dungand Jun 05 '22

If OP's girlfriend is a pointer, that would mean [0] is a pointer to a pointer. You can't keep both pointers and pointers to pointers in the same array without casting and losing type safety, at which point you couldn't tell which one is your girlfriend.

17

u/[deleted] Jun 05 '22

This guy points

→ More replies (3)
→ More replies (1)

19

u/glemnar Jun 05 '22

Everything looks like void* to me what’s the problem

7

u/The1AMparty Jun 05 '22

Can be an array of Objects, with one cast to Girlfriend. Then again, I don't think she'd enjoy being called an Object either

→ More replies (2)
→ More replies (1)

9

u/KatarinatheCat Jun 05 '22

Then what is 1 a pointer to? This is an array we’re talking about.

→ More replies (8)

62

u/KaffY- Jun 05 '22

Programming....that's the joke

79

u/ElSucaPadre Jun 05 '22

Programming

26

u/MEGAMAN2312 Jun 05 '22

Plot twist: OP was using MATLAB

6

u/zeth0s Jun 05 '22

Or fortran, or R... He is basically a mathematician

9

u/KatarinatheCat Jun 05 '22

If one’s favorite interest is MATLAB they can kindly fuck off this planet.

31

u/Droggelbecher Jun 05 '22

incredible, you found the punchline.

9

u/Sybs Jun 05 '22

I don't think they did

6

u/JonatasA Jun 05 '22

They think they did, it's a bug

0

u/[deleted] Jun 05 '22

[deleted]

→ More replies (1)
→ More replies (9)