Question: 2. Now, without changing the original code, fix the program using array. Fix the C++ code at the highlighted lines as shown in Program 6.1.


2. Now, without changing the original code, fix the program using array. Fix the C++ code at the highlighted lines as shown in Program 6.1. Then compile and run. Input the data as in Figure 6.1. Make sure you display the correct value. /Program 6.1: Working with arrays The main function calls a user-defined function named readData without transfers anything. The myProgram reads the input from the user up to 10 integer numbers. Then, it displays it in reverse order #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
