面试题求解!!!
c++吧
全部回复
仅看楼主
level 1
btt1095347198 楼主
int(*(*f)(int, int))(int)表示啥意思?
2012年04月25日 12点04分 1
level 1
指向一个参数为(int,int),返回值为 A类型函数的指针,这里A类型表示一个参数为(int),返回值为int的函数
2012年04月25日 12点04分 2
level 12
右左法则 f是个指针 指向一个参数为(int,int) 返回类型还是个指针(指向参数为(int)返回为int)
2012年04月25日 12点04分 4
level 11
[拜]
2012年04月25日 12点04分 5
level 1
btt1095347198 楼主
明白了,多谢大神指教!
分开就是下面这样了:
typedef int (*P(int);
typdef P (*F)(int, int);
F f;
2012年04月25日 12点04分 6
1