Higher-order functions: Difference between revisions
→Pointer: Removed syntax highlighting
(→Complex example: Removed syntax highlighting) |
(→Pointer: Removed syntax highlighting) |
||
Line 66:
Finally, declaration of a pointer variable of the proper type to hold such a function as myFunc:
int* (*funcPointer)( double* (*funcParameter)(long* parameter) );
Line 72 ⟶ 71:
funcPointer = myFuncComplex;
Of course, in a real project you shouldn't write such a convoluted code, but use some typedef instead, in order to break complexity into steps.
|