1.

What is the use of includes function in c++?(a) Compares two ranges of data(b) Compares two sorted ranges of data(c) Includes a new element in the range(d) Includes a new element in the endThis question was posed to me in class test.This interesting question is from C Style Algorithms topic in section Algorithms, Objects & Iterators in C++ of C++

Answer»

Right answer is (b) Compares TWO sorted ranges of data

To explain I would say: RETURNS true if the FIRST sorted RANGE contains all the elements in the second sorted range.



Discussion

No Comment Found

Related InterviewSolutions