logo
  • 教程列表
  • SO官方文檔
  • 實現定義的行為
    • 右移一個負整數
    • 為整數分配超出範圍的值
    • 分配零位元組
    • 有符號整數的表示
  1. StackOverflow 文件
  2. C Language 教程
  3. 實現定義的行為
  4. 右移一個負整數

右移一個負整數

Created: November-22, 2018

int signed_integer = -1;

// The right shift operation exhibits implementation-defined behavior:
int result = signed_integer >> 1;
  • 為整數分配超出範圍的值
  • 實現定義的行為

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明