Computer Science, asked by shreshthi5214, 10 months ago

Write an algorithm for finding the minimum element in an unsorted array.

Answers

Answered by alshifakhan56
2

Answer:

C program to find minimum or the smallest element in an array. It also prints the location or index at which the minimum element occurs in the array. Our algorithm assumes the first element as minimum and then compare it with other elements if an element is smaller than it then it becomes the new minimum, and this process is repeated till complete array is scanned.

Similar questions