1.

What action is carried out by scanf if a user enters any blank spaces, tabs, and newlines?(a) consider as input(b) ignores it(c) produces error(d) nothing can be saidThe question was posed to me in an online interview.Asked question is from scanf in division Input and Output in C of C

Answer»

The correct option is (b) ignores it

The explanation: The scanf() FUNCTION ignores any blank spaces, TABS, and NEWLINES entered by the user. This scanf() function just returns the NUMBER of input fields successfully scanned and STORED.



Discussion

No Comment Found

Related InterviewSolutions