fork download
  1. #include <string.h>
  2. #include <stdlib.h>
  3. int foo(void) {
  4. char bar[128];
  5. char *baz = &bar[0];
  6.  
  7. baz[127] = 0;
  8.  
  9. return strlen(baz);
  10. }
  11. int main(int argc, char *argv[]) {
  12. int b = foo();
  13. printf("%d\n",b);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5444KB
stdin
Standard input is empty
stdout
6