Doubt in largest string video

In largest string video, cin.get() is used to avoid the newline character to be counted as a string.
Will it work if instead of using cin.get() if we will consider n+1 strings as input?

Hello @mahima actually your system may work without cin.get() as well.
he taught just for the case but for new machines or computers it will not give the error.
so if you machine is modern then you need not worry about this.
Happy Learning!!

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.