Which of the following is a Modifying Sequence Operation?

a) all_of()
b) any_of()
c) equal()
d) swap()

1 thought on “ Which of the following is a Modifying Sequence Operation?”

  1. d
    Explanation: swap() is a Modifying sequence operation. One can observe from the name itself as equal, all_of and any_of are by name states that they will be used for comparison whereas swap is trying to modify the sequence by changing locations of a sequence.

Leave a Comment