When will we use the function overloading?
A. same function name but different number of arguments
B. different function name but same number of arguments
C. same function name but same number of arguments
D. different function name but different number of arguments
Answer:A
When will we use the function overloading?
A. same function name but different number of arguments B. different function name but same number of arguments C. same function name but same number of arguments D. different function name but different number of arguments
Explanation:In function overloading, we can use any number of arguments but same function name. 8. What is the output of this program?