#include <stdio.h>
#include<string.h>
int main() {
int count=0,i=0;
char name[90];
printf("Enter name :\n");
scanf("%s",name);
while(name[i]!='\0')
{
count++;
i++;
}
printf("length of the string %d",count);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: