Data Structures and Algorithms Fundamentals
Casual Mode - Take your time!
1 / 25
Correct
0
Incorrect
0
Score
0%
Multiple Choice
If n is even, and assuming that all A[i] are distinct, what what will be the result of the execution of the code given below:
for (i = 0; i < n; i++)
A[i] = A[n+1-i]?
- It results in 2 copies of each value data.
- The values remain unchanged.
- The array reverses.
- None of the above.