fork download
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main(void)
  4. {
  5. char word[101] = "hello";
  6. int size = sizeof(word) / sizeof(char);
  7. int len = strlen(word);
  8. printf("%d %d\n", size, len);
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5308KB
stdin
Standard input is empty
stdout
101 5