find smallest of three numbers without using comparsion operator
Hello Friends.
I am not able to solve a question in C If u have any idea pls help me The Question is program to find smallest of three numbers without using comparsion operator Thanks 
Re: find smallest of three numbers without using comparsion operator
Hello
do something like this a,b,c d = ab; get MSB of d if(MSB) no is +ve and a>b and so compare a and c else no is ve and a<b so compare b and c in similar fashion. Thanks Shabbir Bhimani 
Re: find smallest of three numbers without using comparsion operator
Quote:

Re: find smallest of three numbers without using comparsion operator
No Alok its not comparison operator but its an inference that a>b or a<b.

Re: find smallest of three numbers without using comparsion operator
May be
really i can't understand 
Re: find smallest of three numbers without using comparsion operator
Code:
a,b,c Thanks Shabbir Bhimani 
Re: find smallest of three numbers without using comparsion operator
Thanks shabbir
for taking out some time from you busy schedule to help me understand thanks again 
Re: find smallest of three numbers without using comparsion operator
Quote:

Re: find smallest of three numbers without using comparsion operator
Quote:

Re: find smallest of three numbers without using comparsion operator
i also needed this

All times are GMT +5.5. The time now is 12:30. 