Sir, When we use cin.get() or cin for char, the thing we input stays in the buffer. So until we do any operation with that variable, the variable does not get any value, is it right?
Char and input buffer
I mean to say that the buffer keeps the string and only when we read we get them one by one?
yes right it keeps that in buffer until it gets the next get for input or any other operation .
Thanks! Understood!
hello @diganta_7777 if you feel that your doubt is cleared please mark this doubt as resolved and do give the star ratings .
Happy Learning !!
Thanks! Done that! .