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
What is the use of bitwise operator?
What is function and its example?
Can a local variable be volatile in c?
Is boolean a datatype in c?
How do you use a pointer to a function?
What is wrong in this statement?
Do character constants represent numerical values?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Explain null pointer.
What is the difference between break and continue?
How can I get random integers in a certain range?
What are all different types of pointers in c?
Can we increase size of array in c?
Explain what’s a signal? Explain what do I use signals for?
Write a program for finding factorial of a number.