317 views
2 votes
2 votes

What fearure(s) can differ between  two overloaded functions?

a. Number of parametrs

b. type of parameters

c. Return type.


I. a , b, or c

II.( a and b) or c

III. a and b only

IV.( a and c) or( b and c)

1 Answer

3 votes
3 votes

ans should be III return type is immaterial in fun overloading

Rules in function overloading[edit]

  • The overloaded function must differ either by the arity or data types
  • The same function name is used for various instances of function call,

Related questions

2 votes
2 votes
1 answer
1
sh!va asked Aug 10, 2016
15,144 views
If class A is friend of class B and if class B is friend of class C, which of the following is true?a. Class C is friend of class Ab. Class A is friend of class Cc. Class...
2 votes
2 votes
0 answers
3
sh!va asked Aug 9, 2016
1,047 views
Which of the following is (are) not recommended in a header file?a. Type definitions (typedefs)b. Class definitionsc. Function definitionsd. Template definitionsI. d only...
1 votes
1 votes
1 answer
4
Harikesh Kumar asked Jan 14, 2018
288 views
Output is? With explanation