Write a program to find length of string without using library function.
Answers
Answered by
5
Answer:
* C program to find the length of a string without using the.
* built-in function.
char string[50];
int i, length = 0;
printf("Enter a string \n");
gets(string);
/* keep going through each character of the string till its end */
for (i = 0; string[i] != '\0'; i++)
Explanation:
Similar questions
English,
4 months ago
World Languages,
8 months ago
Biology,
8 months ago
Physics,
11 months ago
Math,
11 months ago