A new topic about programming, namely Function pointer and Pointer function. What is difference between these two? The most of newbies and trainees about programming will confuse about these two keywords Function pointer and Pointer function. As following is the professional explanation,

Definition about Function pointer and Pointer function
Function Pointer
A function pointer is a pointer variable to a function. Therefore, the “function pointer” itself should first be a pointer variable, except that the pointer variable points to the function. Just as pointer variables can be used to point to integer variables, character types, and arrays, here is pointing to the function.steel coil manufacturers

Pointer function
First, it is a function, except that the return value of the function is an address value. The return value of function must be accepted by the same type of pointer variable, that is to say, the pointer functions must have “function’s return value”, and in the main function, the return value of function must be assigned to the same type of pointer variable.

Leave a Reply

Your email address will not be published. Required fields are marked *