Current location - Quotes Website - Signature design - What is the function of formal parameter table in C++ function pointer?
What is the function of formal parameter table in C++ function pointer?
The formal parameter list is also called "function signature".

The function signature is used to identify the identity of an independent function, that is, just like a person's ID number.

Functions can be overloaded: that is, functions with the same name.

Determine the function you will call by using different parameters or explicitly defining parameter types that cannot be implicitly converted.

Simply put, the function of the parameter table is to enable the compiler to find the correct function that needs to be called among many overloaded functions. In other words, disambiguation.