#include <stdio.h>


int strlen(char str[]){
    int i=0,count;
    char c=str[i];
    while(c!='\0'){
        c=str[i];
        i++;
    }
    count=i-1;
    return count;
        
}
int main() {
    char str[]="Harry bhai";

    printf("%d", strlen(str));
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: