Question 13 of 1410 points

Question 13 · 10 points

Matrix transformation

Implement both requested versions of this operation: one using array indexing and one using pointer arithmetic.

void transform_matrix(
    int rows,
    int columns,
    int matrix[rows][columns],
    int (*transform)(int)
);

Apply transform to every element of the matrix. Both versions must modify the original matrix and work for any positive number of rows and columns. In the pointer version, explain the type and movement of the pointer expression you use.

Your response

Your answer

0 words