You are not logged in.

#1 2015-04-18 06:09:45

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

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.

2015-04-18 06:09:45

Advertisement
Ads By Google

Re: Function Template With Two Parameters:



\n

Board footer