.lenght C code example
Example: length of string 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; }
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; }