/* Realize a function that receives as parameters a matrix and its dimension, i.e., the number of rows and columns. The function must change the sign of all the elements of the rows of the matrix that have an even row index (i.e, rows with indexes 0, 2, 4, 6,...). */ #include #define R 3 #define C 4 void change_sign(int matr[][C], int nr, int nc); int main(){ int m[R][C] = {{1, 2 , 3, 4}, {-1, -2, 3, 4}, {1, -2, 3, -4}}; int i, j; printf("Initial matrix\n"); for(i=0; i