Vidyalelo
C++ Programming · Q38

Arrays and Strings in C++

Programming · C++ Programming · question 38

Q38

What is the purpose of the 'cin.ignore()' function in C++?

A.
Ignores the next character in the input buffer
B.
Ignores the previous character in the input buffer
C.
Clears the input buffer
Answer
D.
Reads a character from the input buffer and discards it

Answer: Option C

Solution

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