1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

zero shift More options

Discussion in 'C' started by Mike, Mar 30, 2007.

  1. Mike

    Mike New Member

    Joined:
    Oct 19, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    Given:
    Code:
       unsigned x = 123; 
       unsigned y = 0; 
       unsigned a = x << y; 
       unsigned b = x >> y; 
    I would hope that: a == 123 && b == 123;

    but I don't see this in section 5.8 of ISO/IEC 14882. Is it true? Chapter & verse?


    Thanks,
    Mike.
     

Share This Page