I use a function pointer points to a function then I observe the address of the function - test and the address the function pointer - pf_test points to.
I'm confused that the second address always equals to the first address plus 1. Ex. if the first address is 0x00000298, then the second address is 0x00000299.
Everything works fine and I just want to know why these two addresses are different.
I also tried to do the same thing under CodeBlocks but it gives the same address.
int test() { return 1; } int main() { int (*pf_test)() = test; while(1) { } }