Question: Q2) a) Write a C function to multiply two matrices as shown below and print the result. b) Write a C function to find and

Q2) a) Write a C function to multiply two matrices as shown below and print the result. b) Write a C function to find and print the prime numbers (numbers only divisible by themselves and 1) from the final matrix. c)Write a complete C program to perform matrix multiplication and detect the prime numbers after the multiplication using the functions defined above. Define two matrices with size of each one is two by two (using two-dimensional array) and generate the elements of the matrices between 0 and 9 using the rand function. Finally, call the functions defined above and give the arrays as an input to these functions to perform the given tasks. fal + b1 + a2 + b3 al + b2 + a2 * b4] Hint: matrix multiplication: 721-01 21
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
