Question: Consider the following: struct Values { long positive _ values ; long negative _ values ; long even _ values ; long odd _ values
Consider the following:
struct Values
long positivevalues ;
long negativevalues ;
long evenvalues ;
long oddvalues ;
;
Write a function having the prototype:
Values countvalueslong
inarray long insize ;
where inarray is an array of insize long values.
The function should traverse the array inarray counting the number of positive values, negative values, even values, and negative values encountered and return a variable of type Values containing the information. Zero should be considered a positive value
Consider the following code snippet:
const long SIZE ;
const long THEARRAYSIZE
;
Without writing a full int main function, write the statements necessary to call the function defined above.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
