Question: Please do in C. Write a function that verifies if a given number exists in an array of floats. The function is supposed to return

Please do in C.Please do in C. Write a function that verifies if a given

Write a function that verifies if a given number exists in an array of floats. The function is supposed to return the first position in which the number is encountered. If the given number does not exist, the function returns -1. Then write a program that asks the user to enter an array of floats and calls the function. The prototype of the function should be like: int find (floats a[], float number); Consider the following array of floats If the number to be searched is 5.4 the function returns -1 If the number to be searched is 9 the function returns 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!