<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ### 右移運算 例如15的二進制為1111,若15右移3位,即15 >> 3,此時1111向右移動3為變成了1,即2的0次方等于1,所以15 >> 3 = 1; 同理:15右移2位,即15 >> 2, 此時1111變成11,即2的一次方 + 2的0次方 = 3;所以15 >> 2 = 3 左移也是同樣的計算方式 #### 這樣有什么用呢?? 比如,一個字節有八位,你想知道某個位的值,就可以用右移運算了 ### 常用進制轉換 |十進制|八進制|二級制| |:---:|:---:|:---:| |1|01|0000 0001| |2|02|0000 0010| |4|04|0000 0100| |8|010|0000 1000| |16|020|0001 0000| |32|040|0010 0000| |64|0100|0100 0000| |128|0200|1000 0000| |256|0400|1 0000 0000| |512|1000|10 0000 0000| ### 按位與或運用 - 按位或: 可以設置多個選項 - 按位與: 可以檢測是否設置該選項 ```c int a = 1; int b = 2; int c = 4; int d = 8; int n = a | d; if ((n & a) == a) { echo "yes"; } if ((n & c) == c) { echo "no"; } ``` 或者用八進制表示如下: ```c int a = 01; int b = 02; int c = 04; int d = 010; int n = a | d; if ((n & a) == a) { echo "yes"; } if ((n & c) == c) { echo "no"; } ``` 以上例子只能是1,2,4,8這樣特殊規律的數字;在C語言中,0開頭的數字表示為八進制 ### 按位與&的用途 例如某個數和二進制0000 1111做按位與計算的話,能夠獲得某個數后四位的值
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看