A, B and C are three 3×3 matrices containing real elements.

A, B and C are three 3×3 matrices containing real elements.

a) Write a ‘C’ function to input from user appropriate values into matrices A and B. Use
suitable loops. Make use of pointers if necessary.
b) Write a ‘C’ function to calculate matrix C such that C=A+B Use suitable loops. Make use of pointers if necessary
c) Write a ‘C’ program to call the above two functions and print Matrix C suitably. Write suitable prototype etc. Use suitable loops. Make use of pointers if necessary



Leave a Reply