What is the output of this code #include iostream#include string
#include cstdlib
templateclass G
G func(G x)
{
coutx;
return x;
}
templateclass U
void func(U x)
{
coutx;
}
int main(int argc, char const *argv[])
{
int x = 2;
int y = func(x);
return 0;
}