Vidyalelo
C++ Programming · Q35

Arrays and Strings in C++

Programming · C++ Programming · question 35

Q35

In C++, what is the purpose of the 'cin.getline()' function?

A.
Reads a character from standard input
B.
Reads a word from standard input
C.
Reads a string from standard input
D.
Reads a line of text from standard input
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board