Guest User

Untitled

a guest
Apr 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. uint32_t x = 1;
  2. int32_t y = 1;
  3. x << -1; /* is undefined, so is y << -1 */
  4. x << 32; /* is undefined, so is y << 32 */
  5. y << 31; /* shifting 1 into sign bit is also undefined */
  6. ((int32_t) -1) << 1; /* is undefined */
  7. ((int32_t) -1) >> 1; /* is implementation-defined */
Add Comment
Please, Sign In to add comment