( f() )();
#include "stdio.h"
void * a(void);
void * b(void);
void * c(void);
typedef void *(*FunPoint)();
int main()
{
FunPoint f = a;
((FunPoint)(f()))();
return 0;
}
void * a(void)
{
printf("This is the 'a' function.\\n");
return b;
}
void * b(void)
{
printf("This is the 'b' function.\\n");
return c;
}
void * c(void)
{
printf("This is the 'c' function.\\n");
return a;
}
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |