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

Where static variables are stored in memory in c?

982


What are the rules for identifiers in c?

1055


What is a structural principle?

1148


What is an lvalue?

1053


What is the function of multilevel pointer in c?

1067


What is the modulus operator?

1187


What is null pointer constant?

1135


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

992


Explain how do you list files in a directory?

1059


How a string is stored in c?

1051


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

1083


What is an endless loop?

1260


Write a factorial program using C.

1062


Why ca not I do something like this?

1002


Explain what is the difference between #include and #include 'file' ?

1013