C++ Institute CPP Question Answer
What happens when you attempt to compile and run the following code?
#include
using namespace std;
template
void f(A &a)
{
cout<<1< } void f(int &a) { cout<<2< } int main() { int a = 1; f(a); return 0; }
C++ Institute CPP Summary
- Vendor: C++ Institute
- Product: CPP
- Update on: Jul 25, 2025
- Questions: 228