you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 5 months ago (1 child)

Ah 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.

  • source
  • parent
  • hideshow 1 child comment