Consider the following variable declarations Assume each var
Consider the following variable declarations. Assume each variable stores the values in a matrix write code that multiples the matrix a by the matrix b and stores the result in the matrix c. float a [2] [3], b [3] [2], c [2] [2];
Solution
Hi, Please find code to multiplicaton of matrix:
// variable declaration
 float a [2] [3], b [3] [2], c [2] [2];
// Multiplying matrices a and b and
 // storing result in c matrix
for(i=0; i<2; ++i)
 for(j=0; j<2; ++j)
 for(k=0; k<3; ++k)
 {
 c[i][j]= c[i][j] + a[i][k]*b[k][j];
 }
Please let me know in case of any issue

