In one of my project source files, I found this C function definition:

int (foo) (int *bar)
{
    return foo (bar);
}

Note: there is no asterisk next to foo, so it’s not a function pointer. Or is it?
What is going on here with the recursive call?

3 Answers
3

Leave a Reply

Your email address will not be published. Required fields are marked *