20- Declare an array of size 1000. Place 1000 random values in the range (-200 to 200) into this array. Write a function call

In C language

20- Declare an array of size 1000. Place 1000 random values in the range (-200 to 200) into this array. Write a function called calculate which is of type void. Using pointers pass back the following information to main: -number of zeros in the array -number of even numbers in the array -number of odd numbers in the array Note that you must first decide what are the required parameters that the function need to have. Write the main and the function.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *