thats basically taking twos' compliment and converting it to negative one
and then adding it..its the same principle...which is used for dividing two
numbers without using '/' and '-'...right kunal??

On Mon, Sep 26, 2011 at 10:38 PM, Ashima . <[email protected]> wrote:

> grt.we never generally use ~ operator. got to knw abt it.
> Ashima
> M.Sc.(Tech)Information Systems
>  4th year
> BITS Pilani
> Rajasthan
>
>
>
>
> On Mon, Sep 26, 2011 at 10:07 AM, ~*~VICKY~*~ <[email protected]>wrote:
>
>> Tricky question with more tricky answers. thank you all.
>>
>>
>> On Mon, Sep 26, 2011 at 9:55 PM, Kunal Yadav <[email protected]>wrote:
>>
>>> difference = x+ ~y +1
>>>
>>> On Mon, Sep 26, 2011 at 7:33 PM, ~*~VICKY~*~ <[email protected]>wrote:
>>>
>>>> Find the difference of two numbers without using '-' operator !
>>>>
>>>> plz share ur solutions!
>>>>
>>>> --
>>>> Cheers,
>>>>
>>>>   Vicky
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Algorithm Geeks" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected].
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/algogeeks?hl=en.
>>>>
>>>
>>>
>>>
>>> --
>>> Regards
>>> Kunal Yadav
>>> (http://sourcebit.in)
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>
>>
>> --
>> Cheers,
>>
>>   Vicky
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Thanks & Regards
Abhishek Gupta

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to