#include <iostream> using namespace std; template <class X, class Y> void f(X,Y) { cout<<"Ok"<<endl; } void main(void) { f(1,1); //1 f<int ,int>('c', 1); //2 f<string>("str",1.1); //3 }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment