JPDev@programming.dev to Programmer Humor@programming.dev · edit-23 months agoDo you know who can help?programming.devimagemessage-square25fedilinkarrow-up1289
arrow-up1289imageDo you know who can help?programming.devJPDev@programming.dev to Programmer Humor@programming.dev · edit-23 months agomessage-square25fedilink
minus-squarejvw@lemmy.blahaj.zonelinkfedilinkarrow-up3·3 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·3 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.