Write a program for linear search (searching algorithm) to find whether a given number is present in an array and, if it is present, at what…

Write a program for linear search (searching algorithm) to find whether a given number is present in an array and, if it is present, at what location it occurs (using any programming language).

From the Combined Bank Senior Officer 2020 – Preliminary exam, question 37 of 43.

More from this paper