Question: In the code below, the definition of the negCount function is missing! In the box provided, write the completed code for negCount function that gets

In the code below, the definition of the negCount function is missing! In the box provided, write the completed code for negCount function that gets two parameters: an array of integers and an integer representing the number of elements and returns the number of negative values stored in the first "n" elements of an array of integers. In this function, you must use regular array indices for the calculations. Note: Proper indentation is required for full marks. As tab doesn't work in cuLearn quizzes, use 3 spaces for each indentation 1* Your functions must work for all arrays, but this will help with your testing*/ int main() { int numberOfElements = 10; int array[ ] = {1, -3, -6,14,0,5,92,82,-2,10,-45, 0,67}; int count; count = negCount(array, numberOfElements); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
