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 / 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

What does 1f stand for?

1139


Explain how do you declare an array that will hold more than 64kb of data?

1439


What language is windows 1.0 written?

1032


What is clrscr in c?

1124


Explain how do you use a pointer to a function?

1093


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

2165


What is calloc malloc realloc in c?

1046


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1060


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

2075


Explain the properties of union. What is the size of a union variable

1173


What does static variable mean in c?

1085


Explain what are the different data types in c?

1202


Why is event driven programming or procedural programming, better within specific scenario?

2407


What is an array? What the different types of arrays in c?

1156


What is the difference between exit() and _exit() function?

1024