利用指针,来求字符串的长度(模拟实现strlen的功能)
#include <stdio.h>
int my_strlen(char* a) {
char* start=a;
char* end = a;
while (*end !=
利用指针,来求字符串的长度(模拟实现strlen的功能)
#include <stdio.h>
int my_strlen(char* a) {
char* start=a;
char* end = a;
while (*end !=