cin can take in a character but how does it get updated to take in the next character?
How does Cin take in E after H while reading "HELLO"
hi @neilnoronha_2bdb5e3505edc1df,
Whatever comes from the keyboard is stored in a buffer. When you press enter the system passes the buffer to the application code Operator >> will decide how much to read from that buffer - one char, string, int, float etc. Depends on the type of the operand.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.