I was trying to take a character array input by using cin.get() but I was unable to do it

I was trying to take character array as input by using cin.get() but I was unable can you please help me out!!

Hello @sarthak_singhal you can do that in this way.


if you have any doubt you can ask here:
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.