Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a. Define an array with a maximum of 20 integer values and fill the array with numbers input from the keyboard or assigned by the
a. Define an array with a maximum of 20 integer values and fill the array with numbers input from the keyboard or assigned by the program. Write a function named split() that reads the array and places all zeros or positive numbers in an array named positive and all negative numbers in an array named negative. Finally, have your program call a void return-type function named displayArray) that displays the values in both the positive and negative arrays. This means your program must invoke the displayArray) function twice, once to display the positive array and once to display the negative array. Remember to declare your displayArray) function with a function prototype
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started