How does cin.clear() clear the input buffer?

Viewed 14414

From what I have read, cin.clear() resets the flags, but how does this clear the input buffer?

4 Answers
Related