c++
Six integers are read from input and stored into the array arrToModify. Write a function SwapArrayPos() that takes an integer array parameter and swaps the first element with the second element of the array.
Ex: If the input is 50 120 100 15 80 90, then the output is:
Original array: 50 120 100 15 80 90 Changed array: 120 50 100 15 80 90
Ex: If the input is:
113 159 168 141 24 30 35 19
then the output is:
113 141