#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<iostream.h>
void main()
{
char st[100];
clrscr();
cout<<"Enter any line : ";
gets(st);
int l=strlen(st);
cout<<"String length = "<<l;
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........