Concept of Input buffer

As in case of c++ we have the concept of input buffer that cin reads from input buffer not from the screen. Do we have this concept also in c language.
In C language we use scanf( ) so does it read from input buffer or from screen.

hello @yashsharma4304 most of things are the same in both the languages .
so yes according to me it would work in the same way .
if you have any doubt you can ask here .
Happy Learning !!

1 Like

No, I was just curious to know this thing. So, thank you for your assist. :grinning:

hello @yashsharma4304 if you feel that your doubt is cleared then you can mark this doubt as resolved and give the star ratings .
Happy Learning !!

1 Like