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
How do you construct an increment statement or decrement statement in C?
What are loops in c?
Can we access the array using a pointer in c language?
What are the different types of pointers used in c language?
Explain 'bit masking'?
Describe the modifier in c?
How the c program is executed?
How can you increase the allowable number of simultaneously open files?
Explain what are bus errors, memory faults, and core dumps?
Why is struct padding needed?
What is a pointer and how it is initialized?
Why we use int main and void main?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
What is #ifdef ? What is its application?
Explain what is a program flowchart and explain how does it help in writing a program?