0
What is the output of the following C++ program?
#include <iostream>
using namespace std;
template <class T> void f(T a) { static int c = 0; c++; cout << c; }
int main() { f(1); f(2); f(1.5); f('a'); f(3); }- A12345
- B11111
- C12113
- D12123
Correct answer: C