fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main ()
  5. {
  6.  
  7. char s1 [20] = {"Some String"}; /* test string */
  8. int retVal; /* holds return value */
  9.  
  10. printf ("The string at the start of array s1 has a size of %d \n", strlen (s1));
  11. retVal = strlen (s1) + 10; /* 11 + 10 */
  12.  
  13.  
  14. return (0);
  15. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
The string at the start of array s1 has a size of 11