Question: Write a C function that takes a one-dimensional floating point array and its size as input arguments and returns the nearest value from number 3

Write a C function that takes a one-dimensional floating point array and its size as input arguments and returns the nearest value from number 3 in that array Example: if the input array is 1.4, 2.1, 3.5, 6.5, 7.5,2.6) then the function should returm 2.6. Example: if the input array is 1.4, 2.1, 3.5,6.5, 7.5, 1.6) then the function should return 3.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
