Error Correction Question

Correct following program.


The function strlength returns the length of the string s.



int strlength(char *s)
{
   if (*s != '\0')    return 1;
   else return 1 + strlength(s);
}

Result