-->
当前位置:首页 > 题库

PROGRAMMING:C programming experiment 5-6 calculating pointer string length

Luz5年前 (2021-05-10)题库413
Input a string arbitrarily from the keyboard, calculate the actual number of characters with the pointer and print it out, that is, do not use the string processing function strlen() to realize the function of strlen.
###Function interface:
```
unsigned int MyStrlen(const char *pStr)
```
###Input format:
character string
###Output format:
String length
###Input example:
Here is a set of inputs. For example:
```in
hello world
```
###Output example:
The corresponding output is given here. For example:
```out
eleven
```







answer:If there is no answer, please comment