123 Eng

### Engineering the engineers™

Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

Computer Science / IT
Electronics
Electrical
Mechanical
Chemical
Civil

CAT / MBA

GMAT / Foreign MBA
Latest Jobs

Displaying  Source Code(s)

 Program to pick & display the largest element of an input matrix. -------------------------------------------------------------------------------- #include #include #include #define MAXROWS 30 #define MAXCOLS 30 void largest(int a[][MAXCOLS],int nrows,int ncols); void readinput(int a[][MAXCOLS],int m,int n); void main() { int nrows,ncols; int a[MAXROWS][MAXCOLS]; clrscr(); printf("How many rows in the matrix? "); scanf("%d",&nrows); printf("How many columns in the matrix? "); scanf("%d",&ncols); printf(" Table
); readinput(a,nrows,ncols); largest(a,nrows,ncols); getch(); } void readinput(int a[][MAXCOLS],int m,int n) { int row,col; for (row=0;row,row+1); for (col=0;collargest) largest=a[i][j]; } } printf(" The largest element of the matrix is %d",largest); return; }

Contribute content or training reports / feedback / Comments
job placement papers