Question: Trace the output: #include using namespace std; template void fun(const T&x) { static int count = 0%; cout < < x = < <

Trace the output: #include using namespace std; template void fun(const T&x) { static int count = 0%; cout < < "x = < < x < < count = < < count < < endl; ++count; return; } int main() { } fun (1); cout < < endl; fun (1); cout < < endl; fun (1.1); cout < < endl; return 0;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
