Difficulty: Easy
Correct Answer: ambiguous
Explanation:
Introduction / Context:Function and constructor overloading lets you reuse names for different parameter lists. However, if a call could match more than one candidate with no clear best conversion sequence, the compiler cannot pick uniquely. Recognizing the term for this situation helps diagnose compile-time errors and fix API design issues.
Given Data / Assumptions:
Concept / Approach:
Step-by-Step Solution:
Identify the scenario: two or more viable constructors match equally well.Apply the rule: if no single best conversion sequence exists, the call is ambiguous.Therefore, the correct term is ”ambiguous”.Verification / Alternative check:
Try compiling code where int converts to both long and double with similar ranks; compilers emit an ”ambiguous” overload resolution error.Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
ambiguous
Discussion & Comments