Question: In C programming. Create a function called ProcData ( ) that accepts two arguments, an int value and an int array, in order to process

In C programming. Create a function called ProcData() that accepts two arguments, an int value and an int array, in order
to process data in the x[] array containing 104 integer values as shown below. The x[] array must be
declared in the main() function, then passed into the ProcData() function. An integer pointer may be
used in the ProcData() function to operate on the int array argument. Output the result to the terminal
screen.
If int value argument is 1, the function determines the total of odd values in the int array.
If int value argument is 2, the function determines the total of even values in the int array.
If int value argument is 3, the function determines the total of positive values in the int array.
If int value argument is 4, the function determines the total of negative values in the int array.
Copy and paste the x[] array into the main() function as a local array:
int x[104]={
79,-72,66,30,-0,39,45,-82,32,-17,-34,
84,44,30,-97,-87,61,23,19,-50,3,
-9,42,-52,86,68,-69,-90,8,-48,-84,
8,-51,55,3,20,85,45,0,-13,65,66,
70,12,-89,97,68,-53,-91,83,58,-81,
-62,91,98,-3,-56,49,-68,-79,92,76,
17,-20,0,45,-71,-5,39,72,67,77,-34,
70,-11,98,-70,48,-39,84,-21,-17,-54,
-59,-37,23,-28,46,83,-90,22,-51,69,
80,51,-80,-0,68,-60,76,9,47,55,-50
};

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!