#include
#include
int my_strlen(char* str)
{
 int count = 0;
 while (*str != '\0')
 {
  count++;
  *str++;
 }
 return count;
}
int main()
{
 char arr[] = { "i love you" };
 int len = my_strlen(arr);
 printf("%d", len);
}
#include
int my_strlen(char* str)
{
 if (*str != '\0')
  return my_strlen(str+1) + 1;
 else
  return 0;
}
int main()
{
 char arr[] = { "i love you" };
 int len = my_strlen(arr);
 printf("%d", len);
}