[Solved] Which of the following is the predefined function for array reversal in C++ ?

Which of the following is the predefined function for array reversal in C++ ?

a) reverse()
b) arr_reverse()
c) array_reverse()
d) rev()

Answer: a
Explanation: The predefined function for reversing an array is reverse() in C++. It is defined under the library algorithm and requires 2 arguments.

Comments