1

code like this works:

int func()
{
    return 1;
}

int main(int argc, const char * argv[]) {
    int (*f)() = func;
    int x = (*************************f)();  //x = 1

    return 0;
}

Why?

John Kugelman
  • 330,190
  • 66
  • 504
  • 555
CarmeloS
  • 7,658
  • 6
  • 54
  • 102

0 Answers0