Answers for "strlen of poinrt"

0

strlen of poinrt

int strLen(char *s)
{
    int *p = s;
    while(*p !=’\0’)
    {
        p++;  /* increase the address until the end */
    }
    Return p – s; /* Subtract the two addresses, end - start */
}
Posted by: Guest on October-25-2021

Browse Popular Code Answers by Language