Home » C++ Programming » Questions and Answers » Question
  1. How many parameters are required for next_permutation?
    1. 3
    2. 2
    3. 1
    4. 2 or 3
    5. None of these
Correct Option: D

There are 2 or 3 needed for next_permutation. They are first, last and optional comp for comparing the elements.



Your comments will be displayed only after manual approval.