πŸ“Š C++
Q. In a program, If there exists a function template with two parameters and normal function say void add(int , int), so add(3,4) will _____________________ .
  • (A) Invoke function template body as it is generic one
  • (B) Invokes normal function as it exactly matches with its prototype
  • (C) Not be called and Compiler issues warning
  • (D) Not be called and Compiler issues ambiguity in calling add()
πŸ’¬ Discuss
βœ… Correct Answer: (B) Invokes normal function as it exactly matches with its prototype

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
168
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
80%
Success Rate