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
Is it better to use a macro or a function?
Explain output of printf("Hello World"-'A'+'B'); ?
Why c language?
What is putchar() function?
What is new line escape sequence?
What are compound statements?
Write a Program to find whether the given number or string is palindrome.
Explain how do you list a file’s date and time?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is c language in simple words?
What is a built-in function in C?
Which node is more powerful and can handle local information processing or graphics processing?
What is the role of && operator in a program code?
How can a program be made to print the line number where an error occurs?
What is the difference between union and anonymous union?