Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char st[20];
- gets(st);
- int i,length=0;
- for(i=0;st[i]!='\0';i++)
- {
- length++;
- }
- printf("Length= %d\n",length);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement