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 why c is faster than c++?

1126


Why array is used in c?

1062


Is it possible to execute code even after the program exits the main() function?

1394


How do you declare a variable that will hold string values?

1231


Why isn't it being handled properly?

1122


What are the differences between Structures and Arrays?

1273


Explain how do you list a file’s date and time?

1091


Why & is used in c?

1247


How can I remove the leading spaces from a string?

1213


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1396


Are local variables initialized to zero by default in c?

1100


Hi can anyone tell what is a start up code?

2137


Can variables be declared anywhere in c?

1149


How can I prevent another program from modifying part of a file that I am modifying?

1110


Is javascript based on c?

1117