Callback in C

What is a callback method?

A callback is an executable code that is passed as an argument to other code. It allows a lower-level software layer to call a subroutine (or function) defined in a higher-level layer.

Callback also provide a way to invoke a particular function at runtime.

Example 1: Simple implementation of callback

=======




Example 2: Passing parameters
=========


コメント

人気の投稿