Dain1234 / Design-and-analysis-algorithm

0 stars 0 forks source link

Length of of string #17

Open Dain1234 opened 2 years ago

Dain1234 commented 2 years ago

include

include

int main() { char Str[1000]; int i; printf("Enter the String: "); scanf("%s", Str); for (i = 0; Str[i] != '\0'; ++i); printf("Length of Str is %d", i); return 0; }