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 property type c?
What does sizeof int return?
What does it mean when the linker says that _end is undefined?
Is main is user defined function?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
can we change the default calling convention in c if yes than how.........?
Why is #define used?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
I need testPalindrome and removeSpace
#include
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What is the importance of c in your views?
Can you please compare array with pointer?
What is void main ()?