How many ways a function can be used according to the argument list and return types? Explain

Questions by sachipatnaik2008   answers by sachipatnaik2008

Showing Answers 1 - 6 of 6 Answers

That's true overloading in not possible in C.
But in C++ function can be varied depending on its argument not on the return type.
because, if there are two function with the same name having same argument list but with different kind of return type, compiler will unable to resolve, this which function is to be made, since at that it compile know about the argument list. return type will be resolve after executing these function. So compiler will give you error in this case.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions