ns 1.6 pts Question 10 om Consider the following C++ function that is intended to count the number of negative values in
Posted: Fri May 20, 2022 5:38 pm
ns 1.6 pts Question 10 om Consider the following C++ function that is intended to count the number of negative values in an array. For example, if the array contains (1, 2, -1,4, -3, -7) the count is three. int processArray (int mixedArray[], const int arraysize) Central int count = @ // Iterate [ // Compare count++; } return count; } What statement should be in the place of // Iterate to process the array? for (int i 1; i <= arraySize; i++) O for (int i = 0; i < arraySize; i++) O for (int i.-1i < arraySize; i++) for (int i = 0; i <= arraySize; i++) « Previous Next