Computer Science, asked by Anonymous, 4 months ago

write a program to search an element in an array using linear search.make an array as a private member of the class​

Answers

Answered by XxShAnTaNuxX
2

\huge \underline \frak \pink {★彡A᭄ɴsᴡᴇʀ彡★}

Make array as a private member of the class. use a for loop to iterate over indexes until index == length... at each iteration test the value against your search criters... when match found, you could return/use the index/value as you need .... ;)

Answered by cutebrainlystar
0

Explanation:

\huge \underline \frak \blue {★彡A᭄ɴsᴡᴇʀ彡★} </p><p>★彡A᭄ɴsᴡᴇʀ彡★</p><p>

Make array as a private member of the class. use a for loop to iterate over indexes until index == length... at each iteration test the value against your search criters... when match found, you could return/use the index/value as you need .... ;)

Similar questions