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
  • 349,597
  • 67
  • 533
  • 578
CarmeloS
  • 7,868
  • 8
  • 56
  • 103

0 Answers0