Function will return lenght of the string
Answers
Answered by
0
Answer:
__________________________________
- 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; }
__________________________________
Similar questions