Thanks to all.............. On Sun, Aug 21, 2011 at 12:07 AM, Sanjay Rajpal <[email protected]> wrote:
> it will be like 1111 1111 1111 1111. > I have mentioned that leftmost 1 bit will be carried with shift. > > > Sanju > :) > > > > On Sat, Aug 20, 2011 at 11:18 AM, Abhishek > <[email protected]>wrote: > >> when numbers are -ve and we shift to >>, last nos. are replaced with 1's >> or 0's ? >> ex: in your case -16 = 1111 1111 1111 1111 1111 1111 1111 0000 >> and after >>4 it will be like >> 1111 1111 1111 1111 1111 1111 1111 1111 >> OR >> 0000 1111 1111 1111 1111 1111 1111 1111 ? >> >> plz explain >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/algogeeks/-/p955FF0PSxQJ. >> >> 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. > -- 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.
