[英]Can someone explain the difference between these two typedefs? (Function pointer related)
This one is quite obviously a function pointer : 这个显然是一个函数指针:
typedef int (* foobar) (int a, unsigned char *b, unsigned int c);
But what does this one do? 但是这个做了什么?
typedef int (foobar *) (int a, unsigned char *b, unsigned int c);
它产生编译器错误,至少在GCC 4.3中:
foo.cpp:1: error: expected `)' before '*' token
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.