flyeagle_abcd2011-09-19 04:08:35

Suppose I have the following C program under Linux. When I run the program, how should I know where the function main() and Foo() are loaded in the physical memory?

int main()
{
    Foo();
    exit(0);
}

Foo()
{
    printf(“hello world\n”);
}

mc33612011-09-19 18:48:55
define pointers to functions