sorry for bothering you again, but I'm getting an error that I am not quite sure how to solve. I'm trying to make a function that prints a matrix with a set value for both ROW and COLUMN. However, when I use ROW or COLUMN inside the "for" to print the matrix, the compiler sends me this error:
error: lvalue required as left operand of assignment
I've tried reading other similar questions and trying to find out what exactly the error means in this case but I can't seem to do so.
So my question is, what does that error mean and how do I fix it?
Thank you
#include <stdio.h>
#include <stdlib.h>
#define ROW 3
#define COLUMN 4
#define SS1 4
#define SS2 1
#define SORTED1 8
#define SORTED2 1
#define SORTED3 5
void matrixPrint (int m[ROW][COLUMN]){
for (ROW = 0; ROW < 3; ++ROW){
for (COLUMN = 0; COLUMN < 4; ++COLUMN){
printf("%4d", m[ROW][COLUMN]);
}
printf ("\n");
}
}