Matrix Multiplication In C

前端 未结 8 2122
后悔当初
后悔当初 2021-02-10 00:01

I\'m trying to solve a matrix multiplication problem with C. Matrix sizes given in problem (2x2) I wrote this code but it doesn\'t print result as I expect. I think I\'m missing

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-10 00:31

    matC initially contains some garbage values. Iniatialize the martix to all zeroes. This might solve your problem

提交回复
热议问题