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 / abhilash.d

void main()
{
int a,b,big;
printf("enter the values of a,b");
scanf("%d%d",&a,&b);
big=a>b?a:b;
printf("biggest of two no is:%d",big);
}

Is This Answer Correct ?    19 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the memory area not included in C program? give the reason

1998


How is a null pointer different from a dangling pointer?

1089


How can I generate floating-point random numbers?

1204


How can I find the modification date and time of a file?

1127


What is the difference between arrays and pointers?

1175


What is static memory allocation?

1250


What is typedf?

1166


How do I swap bytes?

1122


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1219


How many types of operator or there in c?

1138


Explain what is the purpose of "extern" keyword in a function declaration?

1127


What does int main () mean?

1078


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1266


What are shell structures used for?

1096


Why is it usually a bad idea to use gets()? Suggest a workaround.

1873