QQ1. Write a program to take input of two matrices from user using arrays. Multiply both the matrices and display the resultant matrix.
- Matrix multiplication requires (columns of first matrix) == (rows of second matrix).
- Two-dimensional arrays `A[row][col]` store matrix elements in C.
- Three nested loops `(i, j, k)` compute each element `C[i][j]` of the product matrix.
- Each `C[i][j]` is a sum of `A[i][k] * B[k][j]` for varying `k`.
Answer: Matrix multiplication is a fundamental operation in linear algebra, frequently encountered in data structures and algorithm design, as discussed in Unit 2 on Arrays and Unit 4 on Operations on Data Structures in the BCSL-033 course material. This program demonstrates how to take input for two matrices using two-dimensional arrays, perform their multiplication, and display the resulting matrix. Before performing matrix multiplication, a crucial condition must be met: the number of columns in th...