first thing is that when we run a program it goes in to buffer. so that CPU can execute it fastly. and when ask for value from user, the value first goes into buffer and after pressing enter it goes into variable.
bcoz buffer had limited size so when buffer overrun. In that case compiler gives error.