Re: [algogeeks] Re: number of 1's

2010-07-03 Thread shrinivas yadav
essage 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 group, send email to >> algogeeks+unsubscr...@googlegroups.com >> . >> For

Re: [algogeeks] Re: Bitwise Operators

2010-06-29 Thread shrinivas yadav
> 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. >> >> > > -- > You received this message because you are subscribed

[algogeeks] addition using bitwise

2010-06-29 Thread shrinivas
hi friends i m new to this group, i found very interesting and useful discussion here this is code for adding two number without arithmetic operator int add(int a, int b) { do { a=a^b; b=(a^b)&b; b=b<<1;