1.

How many parameters are available in partial_sum function in c++?(a) 2(b) 3(c) 2 or 3(d) 3 or 4This question was addressed to me in quiz.The question is from Generalized Numeric Algorithms in section Strings, Streams & Numerics in C++ of C++

Answer»

The correct option is (d) 3 or 4

The explanation: There are three or four parameters available in partial_sum FUNCTION in C++. They are first and last element, RESULT and an optional binary OPERATOR.



Discussion

No Comment Found

Related InterviewSolutions