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
Explain what is the heap?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
i want to know the procedure of qualcomm for getting a job through offcampus
What is the meaning of 2d in c?
Are the outer parentheses in return statements really optional?
What is the use of printf() and scanf() functions?
How can I run c program?
Are pointers integer?
Explain what is a program flowchart and explain how does it help in writing a program?
Do pointers need to be initialized?
What is typeof in c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
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 []);
Is c still relevant?
What are the advantages and disadvantages of pointers?