How many swaps are required for reversing an array having n elements where n is an even number?
a) (n-1) / 2
c) (n/2) – 1
Explanation: The number of swaps required for an odd element and an even element array is different because in an odd element array the position of the middle element does not need to be changed. So the number of swaps required will be n/2.