#include using namespace std; // import / streamline an array // myPtrImportArray1.cpp // both integer and pointer can return the values // pointer can alter the values at the address // intger does it as a soft (not deep) copy. int get_array(int x); int * ptr1; int main() { cout<<"\n Import array with a Pointer \n "; for(int i = 0; i < 4; i++) { //flush the function get_array // also consider virual function get_array(i); cout << ptr1[i] << " "; } return 0; } int get_array(int x) { int n2[4] = { 1,4,3,2}; ptr1 = n2; return * ptr1; }