in the buffer part? where sir has written cin.get() .
why does this thing doesn’t happen when we do " cin>> " .
In the buffer part?
Hey @mehulbhandari358 this is because cin>> ignores ‘\n’ so you don’t have to do cin.get(), but cin.getline() uses ‘\n’ as a signal to stop read, hence it’s required to do so.