Home » C++ Programming » Questions and Answers » Question
  1. What will happen in ‘all_of’ method if the range is empty?
    1. Return nothing
    2. Return true
    3. Return false
    4. All of above
    5. None of these
Correct Option: B

Returns true if pred returns true for all the elements in the range [first,last) or if the range is empty, and false otherwise.



Your comments will be displayed only after manual approval.