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
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Calculate 1*2*3*____*n using recursive function??
Write a progarm to find the length of string using switch case?
What is the difference between Printf(..) and sprint(...) ?
What is a null string in c?
What is your stream meaning?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What are keywords in c with examples?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
When should the register modifier be used? Does it really help?
Why is c fast?
what value is returned to operating system after program execution?
What does emoji p mean?
What is typeof in c?