given 10 values x ,find the smallest to them.
Answers
Answered by
0
Answer:
For an array of ascending order the first element is the smallest element, you can get it by arr[0] (0 based indexing). If the array is sorted in descending order then the last element is the smallest element,you can get it by arr[sizeOfArray-1].
Similar questions