Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

An incompatible pointer to a function is a situation where a function pointer is declared to point to a function of a certain type, but then it is assigned to a function of a different type. This can lead to errors or undefined behavior when the function is called using the function pointer. For example, if a function pointer is declared to point to a function that takes an integer as an argument and returns a float, but then it is assigned to a function that takes a string as an argument and returns an integer, this would be an incompatible pointer to a function.