#include<stdio.h>
void main()
{
char str[50];
int len;
clrscr();
printf("Enter the text: ");
scanf("%s", str);
len=strlen(str);
printf("Length of the string = %d", len);
getch();
}
void main()
{
char str[50];
int len;
clrscr();
printf("Enter the text: ");
scanf("%s", str);
len=strlen(str);
printf("Length of the string = %d", len);
getch();
}
ReplyDeletenice article for beginners.thank you.
javacodegeeks
welookups