C++20 sections · 1024 units
Open in Course

Quiz: Array Operations

Test understanding

Check Your Understanding

Why do we initialize min = arr[0] instead of min = 0 when finding the minimum element?

  1. A.Because the array might be empty
  2. B.Because 0 is not a valid minimum value
  3. C.Because the array might contain only positive numbers greater than 0
  4. D.Because using 0 would always give 0 as the minimum
Start the roadmap to answer the quizzes and solve the challenges