Question 4 (a) Write the function header and function prototype for the following: (1) A function named min () that acce
Posted: Sun May 15, 2022 1:56 pm
Question 4 (a) Write the function header and function prototype for the following: (1) A function named min () that accepts an integer arrays as input and display the minimum value in the array. The function return no value. (ii) A function named minus() that accepts two single precision numbers as inputs and returns the difference of these numbers. (b) (4 marks) Consider a cyliner of radius (r) and height (h). The volume (V) and surface area (A) and volume (V) of the sphere is given by V = arah A = 2h + 2nr? Write a function (header and body) that accepts r and h as inputs and provides V and A as separate variable outputs. The function name should be cylinder. Assume that "emath.h" has been included in the main program. (6 marks)