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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # C `strlen()`函數 > 原文: [https://beginnersbook.com/2017/11/c-strlen-function/](https://beginnersbook.com/2017/11/c-strlen-function/) **函數 `strlen()`**返回給定字符串的長度(字符數)。 ## 函數 `strlen()`聲明 ```c size_t strlen(const char *str) ``` `str` - 這是我們需要計算長度的給定字符串 ## `strlen()`的返回值 此函數返回表示給定字符串中字符數的整數值。 ## C `strlen()`示例 ```c #include <stdio.h> #include <string.h> int main () { char str[50]; int length; strcpy(str, "Welcome to Beginnersbook.com"); //returns the number of characters in the string length = strlen(str); printf("Length of string - %s is: %d", str, length); return 0; } ``` 輸出: ```c Length of string - Welcome to Beginnersbook.com is: 28 ``` #### 相關文章: 1. [C - `strcoll()`函數](https://beginnersbook.com/2017/11/c-strcoll-function/) 2. [C - `strcpy()`示例](https://beginnersbook.com/2017/11/c-strcpy-function/) 3. [C - `strspn()`函數](https://beginnersbook.com/2017/11/c-strspn-function/) 4. [C - `strstr()`函數](https://beginnersbook.com/2017/11/c-strstr-function/)
                  <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>

                              哎呀哎呀视频在线观看