fork download
  1. #include <iostream>
  2. using namespace std;
  3. int* foo(int x) {
  4. int *p = new int[x];
  5. return p;
  6. }
  7. int main() {
  8. int x;
  9. cin >> x;
  10. int * t = foo(x);
  11. cout << t;
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5360KB
stdin
5
stdout
0x559ce9da3e80