Question: what is the difference between call back function and called function in c?
Answer: By using a callback, the button code can remain generic yet each button can still invoke a different action when clicked. Let's say this "do_something" function is called a LOT in your problem, and it needs to "call back" to your program for more data.