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
Not all reserved words are written in lowercase. TRUE or FALSE?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is the value of h?
Write a progarm to find the length of string using switch case?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What are the advantage of c language?
What is the difference between #include
Explain the difference between malloc() and calloc() in c?
Explain what are bus errors, memory faults, and core dumps?
can anyone suggest some site name..where i can get some good data structure puzzles???
Which is best book for data structures in c?
What are the types of functions in c?
Can the size of an array be declared at runtime?
How are 16- and 32-bit numbers stored?
How can you increase the allowable number of simultaneously open files?