fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void create(int *&x,int n){
  5. x=new int[n];
  6. }
  7.  
  8.  
  9. int main() {
  10. int n;
  11. cin>>n;
  12. int *x;
  13. create(x,n);
  14. cout<<x;
  15.  
  16. // your code goes here
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5320KB
stdin
5
stdout
0x5596c2f97e80