find string's length with using function in c
Answers
Answered by
2
Answer:
String length in c
1) int main() { char a[100]; int length;
2) printf("Enter a string to calculate its length\n"); gets(a);
3) length = strlen(a);
4) printf("Length of the string = %d\n", length);
return 0; }
Answered by
0
String length in C
int main() { char a[100]; int length;
printf("Enter a string to calculate its length\n"); gets(a);
length = strlen(a);
printf("Length of the string = %d\n", length);return 0; }
please follow me ❤
Similar questions