JPDev@programming.dev to Programmer Humor@programming.dev · edit-25 months agoDo you know who can help?programming.devimagemessage-square19fedilinkarrow-up1276arrow-down117
arrow-up1259arrow-down1imageDo you know who can help?programming.devJPDev@programming.dev to Programmer Humor@programming.dev · edit-25 months agomessage-square19fedilink
minus-squarejvw@lemmy.blahaj.zonelinkfedilinkarrow-up2·5 months agoIsn’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.
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up5·5 months agoIf 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.
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.
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.