Write a program to find minimum between three no.s whithout
using comparison operator.
Answer Posted / ashutosh tiwari
if((a-b)&0x8000)
if((a-c)&0x8000)
printf("a is smaller");
else if((a-c)&0x7fff)
printf("c is smaller");
else
printf("a & c are equal & smaller");
else if((a-b)&0x7fff)
if((b-c)&0x8000)
printf("b is smaller");
else if((b-c)&0x7fff)
printf("c is smaller");
else
printf("b & c are equal & smaller");
else
if((b-c)&0x8000)
printf("b is smaller");
else if((b-c)&0x7fff)
printf("c is smaller");
else
printf("a, b & c are equal & smaller");
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is file in c preprocessor?
What are operators in c?
How is actual parameter different from the formal parameter?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What is the use of printf() and scanf() functions?
Compare interpreters and compilers.
How many levels of pointers can you have?
What is ponter?
List the difference between a "copy constructor" and a "assignment operator"?
What is difference between structure and union with example?
What is 1f in c?
How do you define a string?
What does c value mean?
Which built-in library function can be used to match a patter from the string?
Hai what is the different types of versions and their differences