摘要: 具有函数类型的形参所对应的实参将被自动转换为指向相应函数类型的指针。但是,当返回的是函数时,同样的转换操作则无法实现:1 // func is a function type, not a pointer to function!2 typedef int func(int*, int);3 void f1(func); // ok: f1 has a parameter of function type4 func f2(int); // error: f2 has a return type of function type5 func *f3(int); // ok: f3 return 阅读全文
posted @ 2013-05-02 09:09 xlhuang 阅读(105) 评论(0) 推荐(0) 编辑