Function pointers and callbacks

Описание к видео Function pointers and callbacks

See complete series on pointers here http://www.youtube.com/playlist?list=...

In this lesson, we have explained use cases of function pointer through code examples. In previous video, we had explained basics of function pointers.

See Bubble sort video here:
   • Bubble sort algorithm  

About event handling - You can think of a scenario where if something happens in a user interface, you want to perform some action. For example, upon a mouse click, you want to call some function. Many libraries give you a design where you can register a callback function to be called upon an event (like a mouse click). Library function will callback this function that you would register whenever the event occurs. Basically library function will call all functions registered for the event (stored in some list).

See this Wikipedia article to know about events: http://en.wikipedia.org/wiki/Event_(c...)

For practice problems and more, visit: http://www.mycodeschool.com

Like us on Facebook:   / mycodeschool  

Follow us on twitter:   / mycodeschool  

Комментарии

Информация по комментариям в разработке