Dido09

C - Length of String

May 24th, 2022 (edited)
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <string.h>
  2.  
  3. int main()
  4. {
  5.     int len1;
  6.     char word[1000];
  7.     gets(word);
  8.  
  9.     len1 = strlen(word);
  10.     printf("%d", len1);
  11.  
  12.     return 0;
  13. }
  14.  
Add Comment
Please, Sign In to add comment