0

Can someone tell me what is output of this coding

template <class T> class Pair { private: T first, second; public: Pair (T a, T b): first(a), second(b){ } T bigger(); }; template <class T> T Pair<T>::bigger() { return (first>second ? first : second); }

31st Jan 2020, 5:44 AM
Shekhar Sharma
Shekhar Sharma - avatar
2 Réponses
+ 1
There simply is no output. In this code you are just declaring.
31st Jan 2020, 6:20 AM
Veronica Prime
Veronica Prime - avatar
+ 1
The output of this, if the variables would be declared would be the bigger variable.
5th Feb 2020, 1:27 PM
Matt