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 is void main ()?

1084


Why do we use namespace feature?

1065


Is there a way to jump out of a function or functions?

1113


Why is c so popular?

1173


How many parameters should a function have?

1200


Where in memory are my variables stored?

1195


Between macros and functions,which is better to use and why?

2236


Write a code to generate divisors of an integer?

1080


Explain two-dimensional array.

1089


What is time null in c?

1084


#include { printf("Hello"); } how compile time affects when we add additional header file .

1913


What is the difference between local variable and global variable in c?

1242


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1106


What is a spanning Tree?

1603


Why can't I perform arithmetic on a void* pointer?

1111