Computer Science, asked by akyadavbad, 8 months ago

Write a program to find length of string without using library function.

Answers

Answered by ellapaddie
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