0
About scanf(input operation).
How do we know whether the user has entered input or not? Suppose :we used scanf function to read integer.but the user don't want to enter. He didn't enter .how do we recognise that he didn't enter?
4 Answers
+ 1
well if he didn't entered anything then prompt will wait for the input unless he enters somthing
and if he enters something thats not compatible with the input type then program will crash
to handle this runtime error one must use exceptions handler.
try, throws and catch.
0
Thanks bro "Shubham dalal ".my question is perfectly understood by you.i'll try exeptional handling.
0
Welcome bro