C program to find the length of a string
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char s[20];
int n;
clrscr();
printf("enter any sring\n");
gets(s);
n=strlen(s);
printf("%d",n);
getch();
}
OUTPUT
enter any stringHELP
4
------------------------------------------------------------------------------------------------------------