char ch;
cin>>ch;
cout<<ch;
input: naman
output: n
so why in this video ,it is displaying whole string
How a char can take string as input
@namangarg31 if you want to take input of whole string, use a character array so that all the characters can be stored.
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.