C++20 sections · 1024 units
Open in CourseQuiz: Array Operations
Test understanding
Check Your Understanding
Why do we initialize min = arr[0] instead of min = 0 when finding the minimum element?
- A.Because the array might be empty
- B.Because 0 is not a valid minimum value
- C.Because the array might contain only positive numbers greater than 0
- D.Because using 0 would always give 0 as the minimum