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

biggest of two no's with out using if condition statement

Answer Posted / ansh

Use tenary operator..

c=a<b?b:a;

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How old is c programming language?

1065


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1174


What is #pragma statements?

1163


How can I remove the leading spaces from a string?

1216


What is wrong with this code?

1246


Define Spanning-Tree Protocol (STP)

1183


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1650


What is time complexity c?

1045


Write a Program to accept different goods with the number, price and date of purchase and display them

6299


Explain what are reserved words?

1162


Is printf a keyword?

1261


What is the use of structure padding in c?

1115


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2210


Why is %d used in c?

1061


What is 2c dna?

1132