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
What is c programing language?
What is a floating point in c?
What is c definition?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What are directives in c?
Can you please explain the difference between exit() and _exit() function?
What is function in c with example?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What is a 'null pointer assignment' error?
What is pointer to pointer in c?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What is return type in c?
Why is c fast?
Under what circumstances does a name clash occur?