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
Can you explain the four storage classes in C?
What are the different types of linkage exist in c?
How do you list a file’s date and time?
What is the best style for code layout in c?
Can the curly brackets { } be used to enclose a single line of code?
When should I declare a function?
Write a program that accept anumber in words
What is the use of the function in c?
What is class and object in c?
Is c call by value?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What is a null string in c?
Are the expressions * ptr ++ and ++ * ptr same?
What is a pointer on a pointer in c programming language?
List the variables are used for writing doubly linked list program.