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 for greatest of three numbers without
using if statment

Answer Posted / ragu

int call();
void main()
{
int a,b,c,d;
printf("enter the values");
scanf("%d%d%d",&a,&b,&c);
d=call();
}
call()
{
return(a>b?a>c?a:c:b>c?b:c);
}

Is This Answer Correct ?    28 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it better to use a macro or a function?

1155


Explain output of printf("Hello World"-'A'+'B'); ?

1490


Why c language?

1058


What is putchar() function?

1151


What is new line escape sequence?

1337


What are compound statements?

1171


Write a Program to find whether the given number or string is palindrome.

1274


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

1035


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1006


What is c language in simple words?

1068


What is a built-in function in C?

1593


Which node is more powerful and can handle local information processing or graphics processing?

1315


What is the role of && operator in a program code?

1066


How can a program be made to print the line number where an error occurs?

1082


What is the difference between union and anonymous union?

1302