Q: 3
What happens when you attempt to compile and run the following code?
#include
using namespace std;
template
void f(A a)
{
cout<<1<<endl;
}
void f(int a)
{
cout<<2<<endl;
}
int main()
{
int a = 1;
f(a);
return 0;
}
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.