JPDev@programming.dev to Programmer Humor@programming.dev · edit-25 months agoDo you know who can help?programming.devimagemessage-square19fedilinkarrow-up1284arrow-down118
arrow-up1266arrow-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-up3·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.