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 scope and lifetime of a variable in c?
How do I use strcmp?
Explain that why C is procedural?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Write a program to print ASCII code for a given digit.
What are the different types of objects used in c?
What is realloc in c?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
How do you write a program which produces its own source code as output?
Can the size of an array be declared at runtime?
Write a code to generate a series where the next element is the sum of last k terms.
Can stdout be forced to print somewhere other than the screen?
What is the use of putchar function?
What are register variables in c?
Write a program to print factorial of given number using recursion?