<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # C 程序:查找`int`,`float`,`double`和`char`的大小 > 原文: [https://beginnersbook.com/2017/09/c-program-to-find-the-size-of-int-float-double-andchar_](https://beginnersbook.com/2017/09/c-program-to-find-the-size-of-int-float-double-and-char/) 該程序查找數據類型的大小,如`char`,`int`,`float`,`double`。 ## 示例:用于在 C 中查找數據類型大小的程序 在這個程序中,我們使用`sizeof()`運算符來查找數據類型的大小。當`sizeof` 與原始數據類型(如`int`,`float`,`double`和`char`)一起使用時,它將返回分配給它們的內存量。 ```c #include<stdio.h> int main() { printf("Size of char: %ld byte\n",sizeof(char)); printf("Size of int: %ld bytes\n",sizeof(int)); printf("Size of float: %ld bytes\n",sizeof(float)); printf("Size of double: %ld bytes", sizeof(double)); return 0; } ``` 輸出: ```c Size of char: 1 byte Size of int: 4 bytes Size of float: 4 bytes Size of double: 8 bytes ``` 看看這些相關的 C 程序: 1. [C 程序:相加兩個數字](https://beginnersbook.com/2017/09/c-program-to-add-two-numbers/) 2. [C 程序:查找數組中的元素數](https://beginnersbook.com/2017/09/c-program-to-find-the-number-of-elements-in-an-array/) 3. [C 程序:檢查數字是正數還是負數](https://beginnersbook.com/2015/02/c-program-to-check-whether-the-given-integer-is-positive-or-negative/) 4. [C 程序:按升序排列數字](https://beginnersbook.com/2015/02/c-program-to-arrange-numbers-in-ascending-order/) 5. [C 程序:查找商和余數](https://beginnersbook.com/2017/09/c-program-to-find-quotient-and-remainder/)
                  <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>

                              哎呀哎呀视频在线观看