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

write a c program to find biggest of 3 number without
relational operator?

Answer Posted / manjeeth

void main()
{
int a = 5;
int b = 7;
int c = 2;
int res;

res = (int)(a/b)?a:b;
res = (int)(res/c)?res:c;

printf("big num = %d",res);
}

Is This Answer Correct ?    132 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please give me some tips for the placement in the TCS.

2051


Where is c used?

1033


What is const keyword in c?

1121


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2356


What is break statement?

1055


What is a constant?

993


What is the difference between #include and #include 'file' ?

999


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

1299


Why void is used in c?

949


What are the complete rules for header file searching?

1028


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15725


Explain null pointer.

1039


What is exit() function?

964


What do you mean by a sequential access file?

1041


What is a union?

980