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