write a c program for greatest of three numbers without
using if statment
Answer Posted / suresh
main()
{
int a,b,c,big;
printf("enter 3 values");
scanf("%d %d %d", &a,&b,&c);
big= ((a>b)&&(a>c))? a :b>c?b:c;
printf("largest of 3 no's = %d",big);
}
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
what is the height of tree if leaf node is at level 3. please explain
Why is structure important for a child?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Explain a pre-processor and its advantages.
What are the different properties of variable number of arguments?
Which programming language is best for getting job 2020?
What does a pointer variable always consist of?
Why should I prototype a function?
What are the advantages of using Unions?
Are the variables argc and argv are always local to main?
What is the value of uninitialized variable in c?
What is graph in c?
how we can make 3d venturing graphics on outer interface
How can I remove the trailing spaces from a string?
Write a progarm to find the length of string using switch case?