Ques1) what is cin.get() doing in line no 13. ?
Ques2) in this statement cin.get(name, no) why do we write any no. here ??
what does that no tell ?? what is the significance of that no ?
Ques1) what is cin.get() doing in line no 13. ?
Ques2) in this statement cin.get(name, no) why do we write any no. here ??
what does that no tell ?? what is the significance of that no ?
and what is cin.getline(name,no) why there is line ??
get() and getline() are two separate functions. They are not the same and it is not a typo with an extra “line”.@anujsharmabadboy do you still have any doubts? FYI, enter is treated as a character too. In fact, “enter” IS the new line character I am talking about. It is denoted by ‘\n’.
yeah, i know that …
thank you
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.