Search code examples
cfunction-pointersdeclaration

The declaration of this function


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!


Solution

  • a is a pointer to a function with two parameters of type int that returns a char*.

    The ``Clockwise/Spiral Rule''

    cdecl: C gibberish ↔ English