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 the difference between if else and switchstatement
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
How do you determine a file’s attributes?
What is an identifier?
What is "Duff's Device"?
What is declaration and definition in c?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What is #error and use of it?
How can I get the current date or time of day in a c program?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What are the disadvantages of c language?
What is the difference between a free-standing and a hosted environment?
What is a scope resolution operator in c?
How will you find a duplicate number in a array without negating the nos ?
There seem to be a few missing operators ..