C++

Objectives :

  • myPtrImportArray1.cpp
    importing array with pointer
    int get_array(int x)
    {
    int n2[4] = { 1,4,3,2};
    ptr1 = n2;
    return * ptr1;
    }
  • code : myPtrImportArray1.txt

Step: 1 Create a source file.

Step: 2 Edit and save Source file

Step: 3 Runtime Views:

Step: