C PROGRAM TO FIND LENGTH OF A STRING
0 Responses
/* Write a c program to find the length of a string without using the built-in function */ #include <stdio.h> void main() { char string[50]; int i, length = 0; printf("Enter a string\n"); gets(string); for (i=0; string[i] != '\0'; i++) /*keep going through each */ { /*character of the string */ length++; ... [ Continue reading... ]
