Millionaire Mode

Data Structures and Algorithms Fundamentals

Question 1 of 25

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]?

  1. It results in 2 copies of each value data.
  2. The values remain unchanged.
  3. The array reverses.
  4. None of the above.

Prize Money

15₹7 Crores
14₹1 Crore
13₹50,00,000
12₹25,00,000
11₹12,50,000
10₹6,40,000
9₹3,20,000
8₹1,60,000
7₹80,000
6₹40,000
5₹20,000
4₹10,000
3₹5,000
2₹2,000
1₹1,000