(a) Write the function header and function prototype for the following: (1) A function named min () that accepts an inte
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
(a) Write the function header and function prototype for the following: (1) A function named min () that accepts an inte
(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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!