fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void) {
  5. char str[] = "this should be 23 chars";
  6.  
  7. printf("%d %d", strlen(str), sizeof(str));
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
23 24