Write an algorithm for finding the minimum element in an unsorted array.
Answers
Answered by
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
English,
6 months ago
Math,
6 months ago
Psychology,
6 months ago
Computer Science,
1 year ago
Art,
1 year ago
Math,
1 year ago