In the buffer part?

in the buffer part? where sir has written cin.get() .
why does this thing doesn’t happen when we do " cin>> " .

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.