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 / sandip sen purkayastha
//Find the largest no. in matrix//
//This C program is implemented by SANDIP SEN PURKAYASTHA//
#include<stdio.h>
main()
{
static int a[3][3]={
{11,1,7},
{13,98,56},
{23,43,89},
};
int i,j,big;
big=a[0][0];
printf("The 3*3 matrix is:\n\n");
for(i=0;i<=2;i++)
{
for(j=0;j<=2;j++)
{
printf("%d\t",a[i][j]);
if(a[i][j]>big)
big=a[i][j];
}
printf("\n");
}
printf("\nThe largest no. in this matrix is: %d",big);
}
| Is This Answer Correct ? | 13 Yes | 22 No |
Post New Answer View All Answers
Describe wild pointers in c?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
Explain how do you determine the length of a string value that was stored in a variable?
What are the different properties of variable number of arguments?
What is the significance of an algorithm to C programming?
What is structure of c program?
What is wrong with this initialization?
What are the properties of union in c?
What is the data segment that is followed by c?
Is c procedural or functional?
How are variables declared in c?
Write a code to generate divisors of an integer?
Explain how many levels deep can include files be nested?
Combinations of fibanocci prime series
What is pre-emptive data structure and explain it with example?