Callback Function
What is a Callback Function?
- In case a capacity's reference is passed to one more capacity as a contention to call it, it will be known as a Callback work.
- This permits the developer to compose less code and accomplish more things. A callback work is a capacity that is called by utilizing a capacity pointer.
- Capacity Pointer, as its name recommends, is a pointer to a capacity.
The distinction between Function Pointer and Callback Functions -
- A capacity pointer is a pointer that focuses on capacity. While, callback capacities are work pointers passed as boundaries of the capacity, which can be called back when an occasion happens.
- A capacity pointer is a location of the capacity. While, callback capacities pass work pointer as a contention, and the guest would callback if something occurs.
0 Comments