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
which type of aspect you want from the student.
What are the types of functions in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
What is sizeof array in c?
What is typedf?
What is the code for 3 questions and answer check in VisualBasic.Net?
Explain the bubble sort algorithm.
What is the value of h?
What are structures and unions? State differencves between them.
difference between native and cross compilers
What does sizeof return c?
What is hash table in c?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
What is the importance of c in your views?