Q 1. Write a program to implement 2-d array multiplication ?

Q 2. Write a function that returns 1 if the two matrices passed to it as argument are equal and 0

otherwise

Q 3 : Write a ‘C’ program to find out sum of diagonal elements of a matrix using ‘C’.

Q 4 : Write a ‘C’ function to calculate matrix C such that C=A+B Use suitable loops. Make use of pointers if necessary

Q 4 : Define a two dimensional array ‘int a[10][10]’. Write a ‘C’ program to initialize this array with numbers between 0 and 99. Then print the contents of ‘a’.

Q 5 : A, B and C are three 3x3 matrices containing real elements.

Q 2. Write a function that returns 1 if the two matrices passed to it as argument are equal and 0

otherwise

Q 3 : Write a ‘C’ program to find out sum of diagonal elements of a matrix using ‘C’.

Q 4 : Write a ‘C’ function to calculate matrix C such that C=A+B Use suitable loops. Make use of pointers if necessary

Q 4 : Define a two dimensional array ‘int a[10][10]’. Write a ‘C’ program to initialize this array with numbers between 0 and 99. Then print the contents of ‘a’.

Q 5 : A, B and C are three 3x3 matrices containing real elements.

- Write a ‘C’ function to input from user appropriate values into matrices A and B. Use suitable loops. Make use of pointers if necessary.
- Write a ‘C’ function to calculate matrix C such that C=A+B Use suitable loops. Make use of pointers if necessary
- 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

## No comments:

## Post a Comment