C Program to evaluate Subtraction of two matrices ( matrix ) in C

Output :

Note : 2-D array needs two nested for loops
Keep in mind :

  1. One Matrix can be subtracted with another only if the order of both matrices is Equal
  2. No of rows of MAT-1 = No of rows of MAT-2
  3. No of col of MAT-1 = No of col of MAT-2
  4. During subtraction b[0][0] is subtracted from a[0][0] and result is stored in c[0][0]

We required two ‘for loops’ (nested) for following Perpose :

  1. Accepting Matrix
  2. Displaying Matrix
  3. Manipulating Matrix
  4. Performing Different Operations on Matrix