Question: An array with 3 0 random values between [ - 5 0 , 5 0 ] is generated by the user using the random number

An array with 30 random values between [-50,50] is generated by the user using the random number generator. Write a function named array_calculations() which is called from main() by sending the base address of the array and its size, finds the count of negative numbers, positive numbers, zeros, even numbers and odd numbers in the array and displays the results in main(). A sample run of the your program must look as follows.

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 Programming Questions!