H
huhu
Hi,
I meet a sentence:
I meet a sentence:
huhu said:Hi,
I meet a sentence:
fpt is a table of functions that return a pointer to an "intNode" andhuhu said:Hi,
I meet a sentence:
------------------------------------------------
struct intNode *(*fpt[])(void)=
{createList, inNode, delNode,revNode,NULL};
-------------------------------------------------
The "createList","inNode","delNode","revNode" are functions.
I'm puzzled by the c sentence.
Who can explain it for me?
Thanks!
*cdecl* (C declaration parser) can explain it for you.huhu said:Who can explain it for me?
fpt is a 1-D array of unspecified quantity of pointer to functionHi,
I meet a sentence:
------------------------------------------------
struct intNode *(*fpt[])(void)=
{createList, inNode, delNode,revNode,NULL};
-------------------------------------------------
The "createList","inNode","delNode","revNode" are functions.
I'm puzzled by the c sentence.
Who can explain it for me?
Thanks!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^fpt is a table of functions that return a pointer to an "intNode" andhuhu said:Hi,
I meet a sentence:
------------------------------------------------
struct intNode *(*fpt[])(void)=
{createList, inNode, delNode,revNode,NULL};
-------------------------------------------------
The "createList","inNode","delNode","revNode" are functions.
I'm puzzled by the c sentence.
Who can explain it for me?
Thanks!
receive no arguments. This table contains 5 positions, the first four are
filled with the
respective functions, and the fifth position is NULL.
C can be very concise. More probably than is needed...![]()
huhu said:Hi,
I meet a sentence:
------------------------------------------------
struct intNode *(*fpt[])(void)=
{createList, inNode, delNode,revNode,NULL};
-------------------------------------------------
The "createList","inNode","delNode","revNode" are functions.
I'm puzzled by the c sentence.
Who can explain it for me?
Thanks!
huhu said:Hi,
I meet a sentence:
------------------------------------------------
struct intNode *(*fpt[])(void)=
{createList, inNode, delNode,revNode,NULL};
-------------------------------------------------
The "createList","inNode","delNode","revNode" are functions.
I'm puzzled by the c sentence.
Who can explain it for me?
Thanks!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.