Computer Science, asked by sacchit2727, 5 months ago

program to count the number of letters of the string without using the length function​

Answers

Answered by anjanvishal
0

Answer:

The program output is also shown below.

* 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++

Similar questions