Given a string S, find its length(including the spaces)without using any pre-defined functions. 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; }