C program for matrix multiplication using recursion
belongs to collection: C language Two Dimensional (Matrix) solved programs/examples
All Answers
total answers (1)
belongs to collection: C language Two Dimensional (Matrix) solved programs/examples
total answers (1)
Given two matrices, we have to find their multiplication using the recursion.
Program:
The source code to perform matrix multiplication using recursion is given below. The given program is compiled and executed using GCC compile on UBUNTU 18.04 OS successfully.
Output:
Explanation:
In the above program, we created two functions MatrixMultiplication() and main() function. The MatrixMultiplication() function is a user-defined function, it is used to perform the multiplication of two matrices using recursion.
In the main() function, we created three matrices arr1, arr2, arr3. Then we perform the multiplication of two matrices using the MatrixMultiplication() function and then we printed the result on the console screen.
need an explanation for this answer? contact us directly to get an explanation for this answer