Question: code in C program (2) Assume the user may enter non-integer characters like abcd. (a) use the return value of scanf function to detect; and
code in C program
(2) Assume the user may enter non-integer characters like "abcd". (a) use the return value of scanf function to detect; and (b) call clearKeyboardBuffer() to remove the non-integer characters before reading new input Please enter 100: abcde I'm sorry, you must enter 100: oka I'm sorry, you must enter 100: 1000 Got 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
