#include using namespace std; int mystrlen(char *str) { if (*str == '\0') {return 0;} return 1 + mystrlen(str+1); } main() { char res[100]; cout << "strlen of \"Hello World.\" is " << mystrlen("Hello World.") << endl; }