Page 1 of 1

(a) Write the function header and function prototype for the following: (1) A function named min () that accepts an inte

Posted: Sun May 15, 2022 1:52 pm
by answerhappygod
A Write The Function Header And Function Prototype For The Following 1 A Function Named Min That Accepts An Inte 1
A Write The Function Header And Function Prototype For The Following 1 A Function Named Min That Accepts An Inte 1 (85.38 KiB) Viewed 70 times
(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. A function named minus() that accepts two single precision numbers as inputs and returns the difference of these numbers. (4 marks) (b) 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 = nr2h A = 2trh + 2tr2 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 "cmath.h” has been included in the main program. (6 marks)