← Back to Question List
C++ Quiz #57
Template with Two Type Arguments
What is the output of the following program?
``cpp
#include <iostream>
#include <string>
using namespace std;
template <typename A, typename B>
void describe(A first, B second) {
cout << "First: " << first << ", Second: " << second << "\n";
}
int main() {
describe(42, string("hello"));
describe(3.14, true);
}
``