1.

Which of the following is the predefined function for array reversal in C++?(a) rotate()(b) arr_rotate()(c) array_rotate()(d) rot()My question comes from Arrays Types in section Arrays Types of Data Structures & Algorithms II got this question by my school teacher while I was bunking the class.

Answer»

Right option is (a) ROTATE()

To EXPLAIN: The predefined function for rotating an array is rotate() in C++. It is defined under the LIBRARY ALGORITHM and requires 3 arguments.



Discussion

No Comment Found

Related InterviewSolutions