write a c program to find largest number in matrix(in each
row,each column, diagonally, and in the whole matrix)? Its
urgent.
Answer Posted / azad sable, chiplun
/*pick up largest number fro 5*5 matrix/*
void main()
{
static int[5][5]={
{11,1,7,9,7},
{13,54,56,2,5},
{23,43,89,22,13},
{14,15,17,16,19},
{45,3,6,8,10}
};
int i,j,big;
clrscr();
big=a[0][0];
printf("\nThe 5*5 matrix in:\n");
for(i=0;i<=4;i++)
{
for(j=0;j<=4;j++)
{
printf("%d\t",a[i][j]_;
if(a[i][j]>big)
big=a[i][j];
}
printf("\n");
}
printf("\nlargest no. in matrix is%d"",big);
getch();
}
| Is This Answer Correct ? | 51 Yes | 43 No |
Post New Answer View All Answers
What does 1f stand for?
Explain how do you declare an array that will hold more than 64kb of data?
What language is windows 1.0 written?
What is clrscr in c?
Explain how do you use a pointer to a function?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What is calloc malloc realloc in c?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
Explain the properties of union. What is the size of a union variable
What does static variable mean in c?
Explain what are the different data types in c?
Why is event driven programming or procedural programming, better within specific scenario?
What is an array? What the different types of arrays in c?
What is the difference between exit() and _exit() function?