program to find the length of the string in c
Answers
Answered by
1
java can find the length of the string in C++
ktarunsai88:
i need it in c
#include
int main()
{
char a[100];
int length;
printf("Enter a string to calculate it's length\n");
gets(a);
length = strlen(a);
printf("Length of the string = %d\n", length);
return 0;
}
Similar questions