Home > Back-end >  For help
For help

Time:01-02

Explain the principle of this program, thank you

CodePudding user response:

Understand, apologize to embrace

CodePudding user response:

 int s (char * s) 
{
Char * p=s;//the string passed to the first address pointer p
While (* p) p++;//pointer of cyclic walk to the end of the string '\ 0'
Return (p -s);//calculate the length of the string and returns the
}

 int I=s (a); 
Printf (" % d ", I);//output string length

CodePudding user response:

This figure is also really,,,
  • Related