What will be the output of the following program?
#include iostream
using namespace std;
void func(int x)
{
cout x ;
}
int main()
{
void (*n)(int);
n = &func;
(*n)( 2 );
n( 2 );
return 0;
}

Posted on by