1.

How many parameters are there in getline function?(a) 1(b) 2(c) 2 or 3(d) 3The question was asked by my school teacher while I was bunking the class.I'd like to ask this question from Input Stream topic in portion Strings, Streams & Numerics in C++ of C++

Answer»

Correct choice is (C) 2 or 3

Easiest EXPLANATION - There are TWO or three parameters in getline() function. They are a POINTER to an ARRAY of characters and maximum number of characters and an optional delimiter.



Discussion

No Comment Found

Related InterviewSolutions