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

without using control structures and control structures find the max and min of given 2 nos

Answer Posted / chavidi

by using ternary operators we can find the max number among
2 numbers
a>b?a:b;

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does 2n 4c mean?

1242


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1234


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1261


What is the purpose of realloc()?

1150


what is the significance of static storage class specifier?

2267


What is selection sort in c?

1111


What is the maximum no. of arguments that can be given in a command line in C.?

1158


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2188


What does the c preprocessor do?

1116


Explain how can you determine the size of an allocated portion of memory?

1118


What is a MAC Address?

1071


Can you please explain the difference between exit() and _exit() function?

1039


Why does notstrcat(string, "!");Work?

1155


What is use of null pointer in c?

1019


What is pointer to pointer in c language?

1159