Topic: Basics of C++ Programming Language "ARRAY IN C++"
Codes discussed will be posted here. Write your conclusion on the ARRAY discussion.
Filename: Example_8-8_Sequential_Search.cpp
Code:
--->> https://drive.google.com/file/d/1pNC-imonYLYiZPPYMMqkH3yUVWG5n_tH/view?usp=sharing
*Note need proper codes and conclusion on how it's done and about the results. And please give the proper solution and explanation.
Note: Place your conclusion on why did it turn out like that and give your reasons why the results turned like that, one paragraph will do for the explanation and conclusion.
Note: Please place the proper conclusion and explanations and results of the codes which were given.
Arrays can be used in a sequential search. In this program, a constant array size is defined and a function for sequential search is declared.
In the sequential search method, an item is searched and it returns the location of the item if it is found, otherwise it returns 0.
In the main function, the user is prompted to enter n number of item and the items are stored in an array.
The sequential method is then called and the location of the item is printed.
Comments
Leave a comment