Given the declarations for f from page 242, list the viable functions, if any for each of the following calls
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:6| Question number:50
All Answers
total answers (1)

C++ programming
(a)
`f(2.56, 42)`is illegal. The call is ambiguous, because either`f(int, int)`or`f(double, double)`is a better match than the other on one of the arguments to the call.(b)
`f(42)`has a best match function`f(int)`.(c)
`f(42, 0)`has a best match function`f(int, int)`.(d)
`f(2.56, 3.14)`has a best match function`f(double, double)`.
need an explanation for this answer? contact us directly to get an explanation for this answer