[prev] [index] [next]

Exercise: Cube Operations

Consider a datatype for data "cubes" defined as:

#define N 4
typedef int Cube[N][N][N];

Write an operation on this datatype to:

  • print values from a matrix variable onto stdout
      (as a sequence of matrices, each preceded by a label cube[i])