HomeC programs C Program to Find the Length of a String byAjay Kadtan •August 03, 2019 0 Program:// Count string without built in function #include<stdio.h> int main() { int length=0; char s[10]; printf("Enter a string :"); gets(s); while(s[length]!='\0') { length++; } printf("\nLength:%d",length); return 0; } Output: Tags: C programs Facebook Twitter