• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | GATE CS Mock 2018 | Question 54

Consider the below Program and identify the problem:

C++
void fun2(int arr[], int start_index, int end_index)
{
    if (start_index >= end_index)
        return;
    int min_index;
    int temp;
    min_index = minIndex(arr, start_index, end_index);
    swap(arr[start_index], arr[min_index]);
    fun2(arr, start_index + 1, end_index);
}

(A)

Selection Sort Recursive implementation

(B)

Bubble sort Recursive implementation

(C)

Finding Pair Recursive implementation

(D)

None of these

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments