/* * Example of multidimensional array, returning an array result * */ #include #define NROWS 5 #define NCOLS 5 void add_matrices(double a[][NCOLS], double b[][NCOLS], double c[][NCOLS], int nrows, int ncols); int main() { double x[NROWS][NCOLS], y[NROWS][NCOLS], xpy[NROWS][NCOLS]; int n,m,i,j; printf("Enter nrows and ncols = "); scanf("%d%d",&m, &n); printf("Enter %d by %d matrix X = \n",m,n); for (i=0; i < m; i++) for (j=0; j