[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) rotate()
b) arr_rotate()
c) array_rotate()
d) rot()

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

Comments