Answer Posted / abhradeep chatterjee
#include<conio.h>
#include<stdio.h>
void main()
{
int a[2][2],b[2][2],c[2][2];//declare 3 array int type
int i,j,k;
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
} scanf("%d",&a[i][j]);//inserting element in array a
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
} scanf("%d",&b[i][j]);//inserting element in array b
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
for(k=;k<2;K++)
{
c[i][j]+=a[i][k]*b[i][j];//multiply of a and b
}
}
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
printf("%d",a[i][j]);//printing element of array c
}
}
}
Is This Answer Correct ? | 20 Yes | 21 No |
Post New Answer View All Answers
Should a function contain a return statement if it does not return a value?
What are the usage of pointer in c?
What is f'n in math?
What is #define?
What are header files? What are their uses?
How do c compilers work?
What is data structure in c programming?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What is array of structure in c programming?
Can you please explain the scope of static variables?
What is the function of multilevel pointer in c?
Explain how can I avoid the abort, retry, fail messages?
What are volatile variables in c?
can we change the default calling convention in c if yes than how.........?
Explain goto?