Originally Posted by
leeor_net
Exactly what are you trying to do with your code? I've never seen a recursive call to an entry point function (main) let a lone a question that doesn't really ask anything.
If you're expecting to see "in main" print before "in fun" than you've misunderstood function pointers and function calls altogether. You'd need to call main via your function pointer and, if you tried to do that with this program you'd end up in an infinte loop if it even worked at all.
In this case, as you've not called main() via your function pointer your function fun() simply prints out a statement and then returns where main continues merily along.