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