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 is the syallabus of computer science students in group- 1?
If fflush wont work, what can I use to flush input?
Why c is called top down?
Explain is it valid to address one element beyond the end of an array?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
How are Structure passing and returning implemented by the complier?
Explain union. What are its advantages?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Differentiate between the expression “++a” and “a++”?
How do you declare a variable that will hold string values?
List some basic data types in c?
What is c token?
How do you construct an increment statement or decrement statement in C?
What is the general form of #line preprocessor?
Why do we use static in c?