#include<stdio.h>
#include<conio.h>
void main()
{
char a[50];
int i,j;
clrscr();
printf("\n Please Give The STRING : ");
scanf("%s",a);
for(i=0,j=0;a[i]!='\0';i++)
j++;
printf("\n THE STRING LENGTH OF %s IS %d .",a,j);
getch();
}
****************************** OUTPUT **************************************
Please Give The STRING : World
THE STRING LENGTH OF World IS 5 .
*****************************************************************************