Reading sentences cin.get()

here why sir has use return at the last of the read line function which is not returning anything ?

yeah ! the function is declared as void so it has no return type , and we are only using return statement we are not returning anything eg:-

if return type of the function is int , then at the end of the function it would be like
return some_int_value here some_int_value is returned

since this is declared void i.e no return type ,we will do
return ; that’s all no value is returned with return statement

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.