
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char str[20];
int l;
clrscr();
printf("Enter the string: ");
gets(str);
l=strlen(str);
printf("The string is:");
puts(str);
printf("the length of string is %d",l);
getch();
}
Where Your Need Ends
About The Author
He has interest in programming in C, C++ and Java. He has been programming since 2007. He is the Founder of "Era of Skills".
You can follow him on Facebook