<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # C 關鍵字和標識符 > 原文: [https://www.programiz.com/c-programming/c-keywords-identifier](https://www.programiz.com/c-programming/c-keywords-identifier) #### 在本教程中,您將學習關鍵字。 C 編程中的保留字,它們是語法的一部分。 此外,您還將了解標識符及其命名方法。 ## 字符集 字符集是在 C 語言中有效的一組字母,字母和一些特殊字符。 ### 字母 ```c Uppercase: A B C ................................... X Y Z Lowercase: a b c ...................................... x y z ``` C 接受小寫字母和大寫字母作為變量和函數。 ### 數字 ```c 0 1 2 3 4 5 6 7 8 9 ``` ### 特殊字符 C 編程中的特殊字符 ```c , < > . _ ( ) ; $ : % [ ] # ? ' & { } " ^ ! * / | - \ ~ + ? ``` **空格字符** 空格,換行符,水平制表符,回車,返回和換頁。 * * * ## C 關鍵字 關鍵字是在編程中使用的預定義保留字,它們對編譯器具有特殊含義。 關鍵字是語法的一部分,不能用作標識符。 例如: ```c int money; ``` 在這里,`int`是表示`money`是`int`類型(整數)的[變量](/c-programming/c-variables-constants "Variables in C programming")的關鍵字。 由于 C 是區分大小寫的語言,因此所有關鍵字都必須使用小寫字母。 這是 ANSI C 中允許的所有關鍵字的列表。 C 關鍵字 | | | | | | --- | --- | --- | --- | | `auto` | `double` | `int` | `struct` | | `break` | `else` | `long` | `switch` | | `case` | `enum` | `register` | ``typedef`` | | `char` | `extern` | `return` | `union` | | `continue` | `for` | `signed` | `void` | | `do` | `if` | `static` | `while` | | `default` | `goto` | `sizeof` | `volatile` | | `const` | `float` | `short` | `unsigned` | 所有這些關鍵字,它們的語法和應用將在各自的主題中進行討論。 但是,如果不希望進一步了解這些關鍵字,請訪問 [C 編程中所有關鍵字的列表](/c-programming/list-all-keywords-c-language "List of all keywords in C ")。 * * * ## C 標識符 標識符是指賦予實體的名稱,例如變量,函數,結構等。 標識符必須是唯一的。 創建它們的目的是為實體提供唯一的名稱,以便在程序執行期間對其進行標識。 例如: ```c int money; double accountBalance; ``` 這里,`money`和`accountBalance`是標識符。 還請記住,標識符名稱必須與關鍵字不同。 您不能使用`int`作為標識符,因為`int`是關鍵字。 * * * ### 標識符命名規則 1. 有效的標識符可以包含字母(大寫和小寫字母),數字和下劃線。 2. 標識符的首字母應為字母或下劃線。 3. 您不能將關鍵字用作標識符。 4. 標識符的長度沒有規定。 但是,如果標識符超過 31 個字符,則在某些編譯器中可能會遇到問題。 如果遵循上述規則,則可以選擇任何名稱作為標識符,但是,請為有意義的標識符指定有意義的名稱。
                  <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>

                              哎呀哎呀视频在线观看