#include
#include
void main()
{
int i;
char str[10];
printf("Enter sentence: ");
gets(str);
for(i=0;str[i]!='\0';i++)
{
}
printf("The length of the string is %d", i);
}
Sunday, February 15, 2009
Find the Length of and String Arry
Posted by
BADTNC
at
5:49 AM
Labels: C Programming
Subscribe to:
Post Comments (Atom)

1 comments:
කෝඩ් ලියද්දි "indentation" තියල ලිව්වම තමයි කියවන්න පහසු වෙන්නේ.
Post a Comment