Q:

Can you overload a function based only on whether a parameter is a value or a reference in c++?

0

Can you overload a function based only on whether a parameter is a value or a reference?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

No, We can not overload a function based only on whether a parameter is a value or a reference. Because passing by value and by reference looks identical to the caller.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Interview Questions and Answers(2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is Overriding in c++?... >>
<< What is the assignment operator in C++?...