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

How many bytes is a struct in c?

1125


What are multidimensional arrays?

1088


Write a c program to demonstrate character and string constants?

2141


Can include files be nested?

1080


What are logical errors and how does it differ from syntax errors?

1253


What is 'bus error'?

1113


What is declaration and definition in c?

1041


How do you generate random numbers in C?

1164


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1042


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16653


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5584


What are comments and how do you insert it in a C program?

1213


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2259


What is a char in c?

951


how should functions be apportioned among source files?

1076