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 the program for maximum of the following numbers?
122,198,290,71,143,325,98

Answer Posted / sameer.chaudhari

main()
{
int i,a[7]={122,198,290,71,143,325,98} , max = a[0] ;

for(i = 0 ; i < 7 ; ++i)
if(max < a[i])
max = a[i] ;

printf("%d",max);
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are multibyte characters?

1194


Difference between malloc() and calloc() function?

1271


What is difference between structure and union?

1193


What is the meaning of 2d in c?

1170


What is #error and use of it?

1350


Where is c used?

1157


Explain pointers in c programming?

1161


Why we use void main in c?

1235


Explain how do you override a defined macro?

1139


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2407


What is the use of clrscr?

1159


how to construct a simulator keeping the logical boolean gates in c

2308


Do you have any idea how to compare array with pointer in c?

1097


What is a structure in c language. how to initialise a structure in c?

1123


How many levels deep can include files be nested?

1188