Doubt doubt doubt

char a[1000];
char b;
b = cin.get();
cout<<b;
b = cin.get();
cout<<b;
b = cin.get();
cout<<b;

so, i can input values in a[ ] only one once right ???
Then every time i write b=cin.get(); it will only update b ??? suppose i write PARTH then, b=P next time A and so on???

hello @parth_tyagi

yeah…

u can use loop to read and store required number of elements in ur array

" so, i can input values in a[ ] only one once right ?? " what i meant was using cin.get() in char array…

can u please write it in code form and share the code link with me.
i m not getting what exaclty u want to ask.

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.