fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int (*func())[3]
  5. {
  6. static int res[3] = {1,2,3};
  7. return &res;
  8. };
  9.  
  10. int main() {
  11. int (*x)[3] = func();
  12. std::cout << (*x)[0] << (*x)[1] << (*x)[2];
  13. // your code goes here
  14. return 0;
  15. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
123