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

Explain what is a 'locale'?

1065


What is the difference between class and object in c?

1152


What is a good data structure to use for storing lines of text?

1069


What is the use of header?

1077


Differentiate between a for loop and a while loop? What are it uses?

1164


Is it possible to have a function as a parameter in another function?

1060


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1390


what do the 'c' and 'v' in argc and argv stand for?

1146


What is d'n in c?

1104


What is the use of printf() and scanf() functions?

1107


Tell us two differences between new () and malloc ()?

1171


What is graph in c?

1044


What is #pragma statements?

1086


Why & is used in c?

1159


What is the scope of static variable in c?

997