How to find an element in an unsorted array in c?
By comparing a given element with all the elements of array.
By comparing a given element with all the elements of the array, and if the element is found in between the iterations, then break the loop.
By using binary search algorithm on that array.
since we have manually entered all the elements into that array, then we don't need to traverse array. we can directly say where that item is located.
Back To Top