how can we see the contents of buffer assocaited with input file stream(STDIN) . suppose if we are giving input using scanf, getchar or any input function how it is actually getting stored in the buffer. especially when we press "enter" key .
example:
case:1)
$ input two integers: 10 20 (enter) $ input two integers: 10(enter) 20(enter)
case 2:
$enter two characters a b(enter) $enter two characters a(enter) b(enter)
why in case 1 it is ignoring spacebar(ASCI-32) but in case2 it is taking spacebar as next input. is it propert of scanf function or terminal .