C++ Programming: From Problem Analysis to Program Design
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN: 9781337102087
Author: D. S. Malik
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 3, Problem 20SA

Explanation of Solution

When the input data type does not match the input variable type presented for receiving the input, in certain cases, an input failure occurs and the input stream enters the fail state. For example, if a decimal number is attempted to be input in an int type variable, it will result in a fail state...

Blurred answer
Students have asked these similar questions
Explain screen buffer in a few words.
Briefly explain console input buffer
When developing software, it is preferable to use interrupts rather than polling.