Considering this code with 3 differents function call semantics:
void f(void){
puts("OK");
}
int main(void){
f();
(*f)();
(&f)();
return 0;
}
The first is the standard way to call f,
the second is the semantic for dereferencing function pointers,
but in the third I'm applying the & operator to the function name and it seems to work fine.
What does in the second and third case happen?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…