Solved

Given the Following Function Template, Which of the Following Are

Question 10

Multiple Choice

Given the following function template, which of the following are NOT valid calls to larger?
Template <class T>
T largerconst T& left, const T& right)
{
Ifleft > right)
Return left;
Else
Return right;
}


A) int x=3, y=4; cout << largerx,y) ;
B) float x=3, y=4; cout << largerx,y) ;
C) char x='3', y='4'; cout << largerx,y) ;
D) char x[]="3", y[]="4"; cout << largerx,y) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions