Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Bit shifting
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 9554 of 9593
Post > Topic >>

Bit shifting

by "Brig White" <brighamandrew@[EMAIL PROTECTED] > Apr 27, 2008 at 08:13 AM

{ Multi-posted article. -mod }

Why is it than when I bit shift to the right with a signed integer type,
all
the higher order bits above the move are set but when I shift with an
unsigned type, they are cleared?



-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]




 6 Posts in Topic:
Bit shifting
"Brig White" &l  2008-04-27 08:13:20 
Re: Bit shifting
David Shen <davidshen8  2008-04-28 02:13:20 
Re: Bit shifting
nickf3 <nickf3@[EMAIL   2008-04-28 02:13:23 
Re: Bit shifting
nickf3 <nickf3@[EMAIL   2008-04-28 16:07:05 
Re: Bit shifting
Francis Glassborow <fr  2008-04-28 16:03:27 
Re: Bit shifting
nickf3 <nickf3@[EMAIL   2008-04-28 20:36:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:35:35 CDT 2008.