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
Which is better oop or procedural?
What is zero based addressing?
What does *p++ do?
What does s c mean in text?
What is the method to save data in stack data structure type?
What is the purpose of sprintf?
Write program to remove duplicate in an array?
What do the functions atoi(), itoa() and gcvt() do?
Which header file is essential for using strcmp function?
Explain what does the format %10.2 mean when included in a printf statement?
Difference between pass by reference and pass by value?
What is enumerated data type in c?
What is a protocol in c?
What are the types of c language?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?