You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-04-18 06:09:45
Function Template With Two Parameters:
Question:
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___________.
Option A):
Not be called and Compiler issues warning
Option B):
Invokes normal function as it exactly matches with its prototype
Option C):
Invoke function template body as it is generic one
Option D):
Not be called and Compiler issues ambiguity in calling add()
Correct Answer is Option B):
Invokes normal function as it exactly matches with its prototype
Failure is the first step towards seccess.
Offline
2015-04-18 06:09:45
- Advertisement
- Ads By Google
Re: Function Template With Two Parameters:
\n