OA. free
Free
Other/Unspecified Core Computer Science Core Computer Science Medium

`c for (i = 0; i<=4; i++) { if (array[i]< array[i+1]) { swap (&array[i], &array[i+1]); done...

Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.

for (i = 0; i<=4; i++)
{
    if (array[i]< array[i+1])
    {
        swap (&array[i], &array[i+1]);
        done = 0;
    }
}
for (i=5; i>=1; i--)
{
    if (array[i] > array [i-1])
    {
        swap(&array[i], &array[i-1]);
        done = 0;
    }
}
printf("%d", array[3]);
}

The output of the program is ______
Choose one option.
Show answer & explanation
Answer: A. A) 3

Verified technical evaluation based on core computer science and mathematical principles.

Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.