Is Function overloading depends on return type of an function in c++? explain me with example please
Printable View
Is Function overloading depends on return type of an function in c++? explain me with example please
You could come up with an example yourself to test.
You cannot overload several function that only differs in return type. I'll leave it as an exercise for you to actually prove that.
Thank you
I worked on some examples
I came to know that function overloading in c++ not depend on return type
only on parameters order, size & there type.