fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int *dma(int a);
  5.  
  6. int main()
  7. {
  8. int SIZE;
  9.  
  10. cout << "Please Enter A Value: ";
  11. cin >> SIZE;
  12.  
  13. int *number = dma(SIZE);
  14.  
  15. cout << "Memory Address: " << number << endl;
  16. delete [] number;
  17. }
  18.  
  19. int *dma(int a)
  20. {
  21. int * arr = new int[a];
  22. return arr;
  23. }
  24.  
Success #stdin #stdout 0s 5344KB
stdin
Standard input is empty
stdout
Standard output is empty