Hello. For my program, I need to write an array of function pointers which return the same data type but have diffrent paramaters. My idea was to create a typedef of a function pointer and make an array of them, like this:
But obviosuly that only works with functions that take one double as a paramater and will not work for all my functions. So is it possible to have on array with diffrent types of function pointer or will that not work?
1. Make the functions take a void pointer and the void pointer can point to different structures with the types you specify. Just cast the void pointer to the structure: