266
Do you know who can help? (programming.dev)
submitted 1 month ago* (last edited 1 month ago) by JPDev@programming.dev to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] jvw@lemmy.blahaj.zone 3 points 1 month ago

Isn't that like, how you declare different dimensionally sized arrays? If you don't care about memory integrity?

It's been literally decades since I had to deal with code like that, so I may have jumped my stack.

[-] calcopiritus@lemmy.world 5 points 1 month ago

If you do it with fixed-size arrays you can accomplish multi-dimension with just int*. Lots of pointer arithmetic needed though. Probably still faster than n levels of indirection.

this post was submitted on 05 Aug 2024
266 points (94.3% liked)

Programmer Humor

19166 readers
670 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS