fork download
  1. #include <string.h>
  2. #include <iostream>
  3. using namespace std;
  4. int foo(void) {
  5. char bar[128];
  6. cout << bar << endl;
  7. char *baz = &bar[0];
  8. cout << baz << endl;
  9. baz[127] = 0;
  10. cout << strlen(baz) << endl;
  11. return strlen(baz);
  12. }
  13.  
  14. int main(){
  15. cout << foo();
  16. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
`HFS�+
`HFS�+
6
6