Array based on int pointer #include #include using namespace std; class array { int *p; int size; public: array(int sz) { p = new int[sz]; if(!p) exit(1); size = sz; } ~array() {delete [] p;} array(const array &object); void put(int i, int j){ if(i>=0 && i=0; lcl_i--) cout << num.get(lcl_i); cout << endl; // Create another array using the copy constructor array x=num; for (lcl_i=0; lcl_i<10; lcl_i++) cout << x.get(lcl_i); }