Thanks. Is there any way to implement 2's compliment on binary numbers?
On Fri, Jul 29, 2011 at 7:13 PM, rajeev bharshetty <rajeevr...@gmail.com>wrote: > ~ does bitwise not on the operand . > It simply inverts all the bits . > > > On Fri, Jul 29, 2011 at 7:09 PM, Nikhil Gupta > <nikhilgupta2...@gmail.com>wrote: > >> And what does "~" operator do? >> >> >> On Fri, Jul 29, 2011 at 5:59 PM, aditi garg <aditi.garg.6...@gmail.com>wrote: >> >>> >> right shift.^ Xor,& and,| OR operators... >>> the statement means u r anding the bits of num wid the bits in the >>> hexadecimal number x0000000FF and thn right shifting the bits by 0 number of >>> times( effectively in this case u wont be shifting) >>> >>> On Fri, Jul 29, 2011 at 5:50 PM, Nikhil Gupta <nikhilgupta2...@gmail.com >>> > wrote: >>> >>>> What is meant by the statement : >>>> >>>> byte0 = (num & x000000FF) >> 0 >>>> >>>> And what is meant by the operators ">>" , "^" , "&" , "|" and how are >>>> they used? >>>> >>>> -- >>>> Nikhil Gupta >>>> Senior Co-ordinator, Publicity >>>> CSI, NSIT Students' Branch >>>> NSIT, New Delhi, India >>>> >>>> -- >>>> 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. >>>> >>> >>> >>> >>> -- >>> Aditi Garg >>> Undergraduate Student >>> Electronics & Communication Divison >>> NETAJI SUBHAS INSTITUTE OF TECHNOLOGY >>> Sector 3, Dwarka >>> New Delhi >>> >>> >>> -- >>> 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. >>> >> >> >> >> -- >> Nikhil Gupta >> Senior Co-ordinator, Publicity >> CSI, NSIT Students' Branch >> NSIT, New Delhi, India >> >> -- >> 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. >> > > > > -- > Regards > Rajeev N B <http://www.opensourcemania.co.cc> > > "*Winners Don't do Different things , they do things Differently"* > > -- > 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. > -- Nikhil Gupta Senior Co-ordinator, Publicity CSI, NSIT Students' Branch NSIT, New Delhi, India -- 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.