#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{char str[20];
int len;
printf("Enter the string: ");
gets(str);
len = strlen(str);
printf("\nLength of the string = %d", len);
getch();
return 0;
}
C program to find length of the String.
Reviewed by
on
December 25, 2019
Rating: 5
No comments: