Dido09

C - Length of String

May 24th, 2022 (edited)
643
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data Copied