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 can I list all of the predefined identifiers?
What are the difference between a free-standing and a hosted environment?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
string reverse using recursion
What is scanf () in c?
Explain how do you view the path?
what do you mean by enumeration constant?
Explain what math functions are available for integers? For floating point?
What is a null string in c?
Where static variables are stored in memory in c?
Explain how can I remove the trailing spaces from a string?
Why is c fast?
What is variable initialization and why is it important?
code for replace tabs with equivalent number of blanks