Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / sandip sen purkayastha

//Find the largest no. in matrix//
//This C program is implemented by SANDIP SEN PURKAYASTHA//
#include<stdio.h>
main()
{
static int a[3][3]={
{11,1,7},
{13,98,56},
{23,43,89},
};
int i,j,big;
big=a[0][0];
printf("The 3*3 matrix is:\n\n");
for(i=0;i<=2;i++)
{
for(j=0;j<=2;j++)
{
printf("%d\t",a[i][j]);
if(a[i][j]>big)
big=a[i][j];
}
printf("\n");
}
printf("\nThe largest no. in this matrix is: %d",big);
}

Is This Answer Correct ?    13 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a stream?

1122


Should a function contain a return statement if it does not return a value?

1063


What are the advantage of c language?

1036


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

1043


Differentiate between the = symbol and == symbol?

1278


What is your stream meaning?

1208


Why we use void main in c?

1147


swap 2 numbers without using third variable?

1115


Write the Program to reverse a string using pointers.

1003


Explain what is the benefit of using an enum rather than a #define constant?

1204


Is there any demerits of using pointer?

1052


What is data structure in c programming?

1062


Explain how can I right-justify a string?

1034


Is c is a middle level language?

1047


write a program to rearrange the array such way that all even elements should come first and next come odd

2263