|
Question #44: What value gets printed by the program?
63% on 1092 times asked
#include <iostream>
int foo(int x, int y)
{
return x+y;
}
double foo(double x, double y)
{
return x+y;
}
int main(int argc, char** argv)
{
double (*ptr)(int, int);
ptr = foo;
std::cout << ptr(3,8) << std::endl;
return 0;
}
|