write a c program for greatest of three numbers without
using if statment
Answer Posted / swathi
main()
{
int a,b,c,s1,big;
printf("enter 3 values");
scanf("%d %d %d", &a,&b,&c);
s1=(a>b)? a : b;
big= (s1>c)? s1 : c;
printf("largest of 3 no's=%d",big);
}
| Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
What is dynamic memory allocation?
Define and explain about ! Operator?
Tell me with an example the self-referential structure?
What are loops c?
Why is python slower than c?
Should a function contain a return statement if it does not return a value?
Give differences between - new and malloc() , delete and free() ?
What is substring in c?
What is a constant and types of constants in c?
How many types of operator or there in c?
Implement bit Array in C.
How can you increase the size of a statically allocated array?
why we wont use '&' sing in aceesing the string using scanf
Explain how can I manipulate strings of multibyte characters?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix