return string_value or return char_value

Hello!
Please, if we want the function to write sth, is there ANY way t odo it using return?

Can return return ONLY numbers?
Please, if somone has links about it!!!

Many thanks!!!
I'm not sure what you are asking? You can have a function return any type you want, but it must be consistent.
Can a function return string too? Or char?
I mean return by return, not by cout!
Last edited on
I tried to return a string, but i get an error which says that it cannot convert it to int which means that you can return with int only. but can you add more detail on what you actually want to do ?
Last edited on
Topic archived. No new replies allowed.