Question: 3. Fill in the for-loop below with the correct parameters to make room for the new value. saved 2 points possible Let's say that you

3. Fill in the for-loop below with the correct parameters to make room for the new value. saved 2 points possible Let's say that you have to write a function to insert an element into an ordered array. It takes an array A, a size, an index and a value. The value needs to be inserted at A[index] without losing values that are already in the array. // Assume that the index is found to be within array bounds and there is room to insert. for (int i = ?; ?; ?) { A[i]=A[i-1]; A[index]=value; size++; 0; i 0; i-- size; i > index; i-- size-1; i >= index
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
