#include <stdio.h>#include <string.h>int main(){int fun(char *p1);char str[30]={};char *p=str;int n;printf(\"请输入一串字符串:\");gets(p);p=str;n=fun(p);printf(\"\\n该字符串的长度为:%d\\n\",n);return 0;}int fun(char *p1){int sum=0;while(*p1!=\'\\0\'){sum++;p1++;}return (sum);}

爱站程序员基地
![[翻译] Backpressure explained — the resisted flow of data through software-爱站程序员基地](https://aiznh.com/wp-content/uploads/2021/05/6-220x150.jpeg)

