On successfully read, scanf return the no. of the successful read.
you can see this: http://www.geeksforgeeks.org/g-fact-10/
64.3k questions
77.9k answers
244k comments
80.0k users