how to explain this right
char*(*a)(int, int);
just explain what does this declaration means. I'm not sure how to explain it right. Thank you very much!
a
is a pointer to a function with two parameters of type int
that returns a char*
.
像这样: a
是一个指向函数的指针,它接受两个int
参数并返回指向char
指针。
To make this declaration
char*(*a)(int, int);
clear use a typedef. For example
typedef char * FunctionType( int, int );
FunctionType *a;
That is a
is a pointer to the function type char * ( int, int )
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.