Fast_input/output

Can anybody tell me why time difference occurs in scanf() and if i use a buffer?Can somebody give me a scanf() equivalent function so that I can know why it takes more time?

The same thing is discussed over here. Please read it.