CJCoding With Joseph
15per day
← Back to Question List

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics:
C++ Quiz #57

Template with Two Type Arguments

mediumTemplates

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); } ``