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


Please Help Members By Posting Answers For Below Questions

Can you explain the four storage classes in C?

646


What are the different types of linkage exist in c?

615


How do you list a file’s date and time?

637


What is the best style for code layout in c?

634


Can the curly brackets { } be used to enclose a single line of code?

717






When should I declare a function?

627


Write a program that accept anumber in words

1256


What is the use of the function in c?

603


What is class and object in c?

592


Is c call by value?

611


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1895


What is a null string in c?

593


Are the expressions * ptr ++ and ++ * ptr same?

672


What is a pointer on a pointer in c programming language?

623


List the variables are used for writing doubly linked list program.

1626