0
what will be output of this code
#include<iostream> using namespace std; template<class T> T maximum(T a,T b,T c) { T max=a; if(b>max) { max=b; } if(c>max) { max=c; } return max; } int main() { cout<<maximum(1,4.7,3.9); }
1 Réponse
+ 5
An error. You are using ints with doubles.