I'm trying to use a function to multiply two matrices. But I am not supposed to use brackets []. Also the function only accept single pointers as arguments. How can I rewrite the algorithm to use pointer arithmetic?
Code:void mult_matrices(int *A, int *B, int *C, int m, int n, int p){ int i, j, k; for(i=0; i < m; i++){ for(j=0; j < p; j++) { C[i][j] = 0; for(k=0; k < n; k++){ C[i][j] += A[i][k] * B[k][j]; } } }