Question PRG-CPP-0010
MediumWhat is the output of this program?
#include <iostream>
using namespace std;
template <typename T>
T add(T a, T b) { return a + b; }
int main() {
cout << add<int>(5, 10);
return 0;
}
- A.
5
- B.
10
- C.
Sign up free to see the answer and a step-by-step explanation.