I\'m kida new to the recursion subject and i\'ve been trying to write the \"strlen\" function using recurion, thats what i tried:
int strlen ( char str[], int i
size_t strlen (char* str) { if (*str == 0) { return 0; } return strlen (str+1) +1; }
So :
strlen ("") == 0
strlen ("a") -> strln("") + 1 == 1
strlen ("he") -> strln("e") + 1) = (strln("") + 1) + 1 == 2
etc