Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

=+What category does this metric represent?

Answered: 1 week ago