function that take an array and a value which you want to find in the array. (function may be needs more parameter to perform it) The function should check values of the array and if it find the same value in the array, it should return the position in the array (just first one). If there is no match, it should return "-1" Example: if array is (1,2,5, 3, 10,5) and If the search term is "10" function must return 4, If the search term is "5" function must return 2, If the search term is "9" function must return -1,

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 2RQ
icon
Related questions
Question
user defined
and a value which you
(function may be needs
want
Write a C
function that take an array
to find in the array.
more parameter to perform it) The function should
check values of the array and if it find the same
value in the array, it should return the position in
the array (just first one). If there is no match, it
should return "-1"
Example: if array is {1,2,5, 3, 10, 5) and
If the search term is "10" function must return 4,
If the search term is "5" function must return 2,
If the search term is "9" function must return -1,
Note: Write whole c program.
Transcribed Image Text:user defined and a value which you (function may be needs want Write a C function that take an array to find in the array. more parameter to perform it) The function should check values of the array and if it find the same value in the array, it should return the position in the array (just first one). If there is no match, it should return "-1" Example: if array is {1,2,5, 3, 10, 5) and If the search term is "10" function must return 4, If the search term is "5" function must return 2, If the search term is "9" function must return -1, Note: Write whole c program.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning