Examveda

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

D. Reads a character from the input buffer and discards it

Answer: Option C


Join The Discussion

Related Questions on Arrays and Strings in C plus plus