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

Program to find larger of the two numbers without using if-else,while,for,switch

Answer Posted / vignesh1988i

#include<stdio.h>
#include<conio.h>
void main()
{
int a=90 , b=-89;
(a>b)?printf("a is larger") : printf(" b is larger ");
getch();
}

thank u

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the condition that is applied with ?: Operator?

1097


what is the basis for selection of arrays or pointers as data structure in a program

4268


What is difference between union and structure in c?

1102


What is getch c?

1265


How can I sort a linked list?

1004


Explain what is the most efficient way to store flag values?

1190


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

1253


Can a pointer point to null?

1041


What do you mean by a sequential access file?

1053


Explain 'far' and 'near' pointers in c.

1105


Why ca not I do something like this?

986


Explain the difference between malloc() and calloc() in c?

1018


Why c is called free form language?

994


Why isn't any of this standardized in c? Any real program has to do some of these things.

1176


How can I call a function with an argument list built up at run time?

1194