Re: [algogeeks] Re: add two numbers using bitwise operators

2010-12-31 Thread rajeev kumar
Thanks to every for kind response On Fri, Dec 31, 2010 at 6:38 AM, Dave wrote: > @Rajeev: When you add two one-bit quantities, you get a two-bit > result: > 0 + 0 = 00, 0 + 1 = 01, 1 + 0 = 01, and 1 + 1 = 10. > Note that the leftmost bit of sum of the the single-bit quantities A > and B, obeys t

[algogeeks] Re: add two numbers using bitwise operators

2010-12-31 Thread Dave
@Rajeev: When you add two one-bit quantities, you get a two-bit result: 0 + 0 = 00, 0 + 1 = 01, 1 + 0 = 01, and 1 + 1 = 10. Note that the leftmost bit of sum of the the single-bit quantities A and B, obeys the logic A & B, and the rightmost bit obeys A ^ B, where & is the logical AND operation and

[algogeeks] Re: add two numbers using bitwise operators

2010-12-31 Thread Divesh Dixit
@rajeev it is a Full Adder (digital electronics) .. code.. On Dec 31, 6:05 pm, Manmeet Singh wrote: > Go through gates in Electronics, code will be easy to visualize. > > On Fri, Dec 31, 2010 at 6:33 PM, juver++ wrote: > > Yeah, add bits one by one from right to left, as for ordinary addition of

Re: [algogeeks] Re: add two numbers using bitwise operators

2010-12-31 Thread Manmeet Singh
Go through gates in Electronics, code will be easy to visualize. On Fri, Dec 31, 2010 at 6:33 PM, juver++ wrote: > Yeah, add bits one by one from right to left, as for ordinary addition of > two numbers in 10-th radix > > -- > You received this message because you are subscribed to the Google Gr

[algogeeks] Re: add two numbers using bitwise operators

2010-12-31 Thread juver++
Yeah, add bits one by one from right to left, as for ordinary addition of two numbers in 10-th radix -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this gr