
This c program example will help you to find the length of string in c programming with the help of strlen() function in c :- How to use strlen() function in c main()
{
char s1[20];
int len;
printf("\nEnter a string to find it's length: ");
gets(s1);
len = strlen(s1);
...