Saturday, November 20, 2010

Function Referencing

Given the following function definition:
   int func() {return 6;}

The following compile:
   func();
   (&func)();
   (*(&func))();
   (&(*(&func)))();

The following do not compile:
   &func();
   (&(&func)())();
   *(&(&func))();

No comments:

Post a Comment