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

Explain what is the heap?

1023


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1025


i want to know the procedure of qualcomm for getting a job through offcampus

2423


What is the meaning of 2d in c?

1070


Are the outer parentheses in return statements really optional?

1062


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

1085


How can I run c program?

1136


Are pointers integer?

966


Explain what is a program flowchart and explain how does it help in writing a program?

1060


Do pointers need to be initialized?

1036


What is typeof in c?

966


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

975


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2306


Is c still relevant?

1047


What are the advantages and disadvantages of pointers?

1026