Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
What's wrong with this code.... //templates #include<iostream> using namespace std; template <class t> t max (t w,t x) [B][COLOR="Red"]--->here i get no error if I use &w and &x in place of w and x...[/COLOR][/B]{ if(w>x) return w; else if(w!=x) return x; } int main() { int a=10,b=343,c; c=max(a,b); cout<<"Max="<<c; … |