摘要: 例如以下的代码片段:int add(int a, int b){ return a + b;}void my_test(int *val, int (*func)(int, int)){ int a = 100, b = 200; *val = func(a, b);}void my_test2(int *val, ...){ int a = 100, b = 200; int (*func)(int, int) = *(int (**)(int, int))(&val + 1); *val = func(a, b);}int main(int argc, char **argv){ 阅读全文
posted @ 2011-05-22 14:40 qsort 阅读(488) 评论(0) 推荐(0) 编辑