1.

How many maximum number of parameters does a string constructor can take?(a) 1(b) 2(c) 3(d) 4This question was addressed to me in an interview.This key question is from Basic String topic in section Strings, Streams & Numerics in C++ of C++

Answer» CORRECT CHOICE is (c) 3

To explain: string(other_string, position, COUNT). It is a type of constructor for the string.


Discussion

No Comment Found

Related InterviewSolutions