1.

To what kind of elements does non-modifying sequence algorithm can be applied?(a) Range(b) Vector(c) List(d) MethodsI had been asked this question during an interview for a job.My doubt is from Non Modifying Sequence Algorithms topic in section Algorithms, Objects & Iterators in C++ of C++

Answer»

The correct ANSWER is (a) Range

The EXPLANATION is: Non-modifying sequence algorithm can be APPLIED to list and vector for example the “FIND” function can be applied to list and vector.



Discussion

No Comment Found

Related InterviewSolutions