|
藍森林 http://www.lslnet.com 2006年6月6日 10:18
c基礎知識之函數型指針
[code]
int a(),b(),c();
int *option[]={
(int *)a,
(int *)b,
(int *)c
};
main(){
(* a)();
(* b)();
(* c)();
}
int b(){
printf("b");
return 0;
}
int c(){
printf("c");
return 0;
}
int a(){
printf("a");
return 0;
}[/code] |
c基礎知識之函數型指針
???????? |
| |