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:
 
<highlightSyntax language=C>
int* (*funcPointer)( double* (*funcParameter)(long* parameter) );
Line 72 ⟶ 71:
funcPointer = myFuncComplex;
</highlightSyntax>
 
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.