the negative integer can be represented in 2's complement format..

so sub_result=a+(~b+1) will perform the subtraction of a and b....
-b=(~b+1).

On Tue, Jul 12, 2011 at 12:54 AM, Anika Jain <anika.jai...@gmail.com> wrote:

> how to do subtraction of two integers widout using subtractn??
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Warm Regards,
Sunny T

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

Reply via email to