Odd Sum
Create a function named oddSum
. This function will return the sum of every odd value in the array.
The function has two parameters:
int arr[]
, an array of integersint size
, the size of the array.
Use the following function definition:
- Previous
- Next