answersLogoWhite

0


Best Answer

#include
#include
void main()
{ int a[10][10],b[10][10],c[10][10];
printf("\nEnter the Row:");
scanf("%d",&r);
printf("\nEnter the Columns:");
scanf("%d",&c);
for(i=0;ifor(j=0;jc[i][j]=a[i][j]+b[i][j];
printf("\nThe Result is:\n");
for(i=0;i{ for(j=0;jprintf("%d\t",c[i][j]);
printf("\n");
}
getch();
}
Syntactical errors may happened.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Add two matrices by using arrays and functions?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you add two matrices using Linux shell script?

write ashell script to add awo matrix using array.


What must be true in order to add matrices?

They must have the same dimensions.


How do you add fractions in matrices?

The usual rules of addition of fractions apply.


Is there any benefit in a C plus plus program to add two matrices?

No.


A graphic artist thinks he can add the matrices below using mental math. Which statement explains why he could be correct?

adding the additive identity matrix does not change the original matrix


How do you add matrices?

You add matrices by adding their respective terms - e.g. the element in the first row and sixth column of the sum is the sum of the elements in the addends' first rows and sixth columns. Wikipedia has a nice example of matrix addition that I linked below.


Can you give the explanation for various operations in a queue implementation using arrays?

The following are operations performed by queue in data structuresEnqueue (Add operation)Dequeue (Remove operation)Initialize


Can a matrix of 4x5 be added with a matrix with dimensions of 5x3?

No. You can only add matrices of the same size.


Can you add two matrices with different dimensions?

No, you cannot add matricies of different dimention/order (i.e. different number of rows or columns)


How do you solve a matrix?

Please clarify what you want to "solve". There are several operations you can do with matrices, such as add them, multiply them, transpose them, etc.


What are different Uses of matrices in our daily lifeor what are the applications of matrices?

Matrices are used to figure who is seeded in a contest like the NCAA basketball final four. Matrices are used in any calculation that has to do with multiple variables. In business the maximum that you charge for a ticket and make the most money, I have used matrices.


What would be the result if you add matrices B plus A instead A plus B?

It would be no different. Matrix addition is Abelian or commutative. Matrix mutiplication is not.