Question: currently I have one array pointng to a const array. I am a little new to c++ but the goal in mind would to list

currently I have one array pointng to a const array. I am a little new to c++ but the goal in mind would to list the values in my first array "num" in ascending order, and no matter there place in the array (even though there postion within in the array would change it would stil stay fixed and point the value indicated in the second array "num 2".

example the values 10,34,654,23. these values would then be listed as 10,23,34,654 but as orginally coded early 23 would be pointing to value 100 even when placed in the second postion after being converted to ascedning order.

Below shows the code that I have so far. and an additional code I would use to list my values in ascdeing order.

******Can Someone please demostrate and actual c++ code that will achieve my goal so I can run and follow it.********

 currently I have one array pointng to a const array. I

am a little new to c++ but the goal in mind would

oding fileslvector.cpp Executingl- Dev-C++5.11 Project xecute Tools AStyle Window Help CAUsers\aidan Desktoplcoding fileslvector.exe Address of num [01-0x6ffe20 Value of num [01-10 pointng to value in second array:97 Address of num [1]-0x6ffe24 Value of num [11-34 pointng to value in second array:98 Address of num [21-0x6ffe28 Value of num [2]-654 pointng to value in second array:99 Address of num [3]-ex6ffe2c Value of num [31-23 pointng to value in second array:1060 IDM-GCG 4.9.2 vector.cpp assignment3almost.cpp pointers.cpp swap78.cpp include 3 #include 4 using namespace std; 6 int hain (){ int num[4]-11e,34,654,23); int const num2[4]-(97,98,99,10e) int *ptr; ptr-num;/ 9 18 Process exited after 0.5275 seconds wi Press any key to continue. 12? 13 for (int i(4 ; i-e; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!