ANSWERS: 1
  • An easy way to keep track of these kinds of complex type definitions is to use the 'typedef' keyword, e.g.: // This says "TPFN_MyFunctionType" is a pointer to a // function that takes an int and a char *: typedef void (*TPFN_MyFunctionType)(int a, char *b); // This says "myAry" is an array of pointers, // each one points to the type of function declared // by TPFN_MyFunctionType: TPFN_MyFunctionType myAry[100]; // A "pointer to the array of pointers to functions" is implicit just in specifying the base // of the array, e.g.: TPFN_MyFunctionType ** myPointer = myAry;

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy