Use of pointer programming, statistics, the length of the string. (do not use the string length func
Using pointer programming, statistics, the length of the string, (do not use the string length function)
CodePudding user response:
size_t MyStrLen (char * STR)
{
If (STR==NULL)
return 0;
Char * p=STR.
While (* p!='\ 0') {
p++;
}
The return p - STR;
}
CodePudding user response:
The