Let's Learn Java Programming..... Through Lots of Coding Examples For Each Topic. Now Go For It ..!
Length Of String #include #include int main() { char a[100]; int length; printf("Enter a string to calculate it's length\n"); gets(a); length = strlen(a); printf("Length of entered string is = %d\n",length); return 0; }