ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 12 days agoPointers explained:lemmy.worldimagemessage-square77linkfedilinkarrow-up1584arrow-down135
arrow-up1549arrow-down1imagePointers explained:lemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 12 days agomessage-square77linkfedilink
minus-squareTechnus@lemmy.ziplinkfedilinkarrow-up12·12 days agoAh right, so that would be a 3D array. T* is a single row of T T** is a list of rows T*** is a list of “layers” in the third dimension This would be incredibly hazardous to pass around as a bare pointer with no context, though. I’d expect to see this in a struct that, at minimum, also includes fields for the size of each dimension.
minus-squareBartyDeCanter@piefed.sociallinkfedilinkEnglisharrow-up8·12 days agoThis Sparta C. We live for danger.
Ah right, so that would be a 3D array.
T*is a single row ofTT**is a list of rowsT***is a list of “layers” in the third dimensionThis would be incredibly hazardous to pass around as a bare pointer with no context, though. I’d expect to see this in a
structthat, at minimum, also includes fields for the size of each dimension.This
SpartaC. We live for danger.