Question
Which of the following statements tells the computer to consume the next 100 characters?a. cin.ignore(100);c. ignore(cin, 100);b. cin.ignore(' $\left.100^{\prime}\right)$;d. none of the above
Step 1
ignore()` function in C++. The `cin.ignore()` function is used to skip or ignore characters in the input buffer. It can be used to discard a specified number of characters or until a certain character is found. Show more…
Show all steps
Your feedback will help us improve your experience
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD