Question: In C++ Write a function named countOdd that takes three parameters, the first two serving as input and the third as output the first parameter
In C++
Write a function named "countOdd" that
takes three parameters, the first two serving as input and the third as output
the first parameter being an array of integers,
the second parameter being an integer indicating the number of elements in the array, and
the third parameter being an integer output.
The function should look through the array, counting the number of integers in the array that are odd and supply that count as its output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
