Some doubts in array

while we are inserting the elements in the array of size n, why do we not write cin.get() just after cin>>a[i] just like we do when we have to insert any sentence or statement in an array?

do you remember why we need to insert cin.get() statement while working with strings? because of that new line character that can be read as string.
when we deal with integers, there is no such problem. cin>>a[i] will read only integers.
so no need of any cin.get() statement.

thanks

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.