Function pointers and callbacks

Published: 27 September 2013
on channel: mycodeschool
336,321
4.2k

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  


On this page of the site you can watch the video online Function pointers and callbacks with a duration of hours minute second in good quality, which was uploaded by the user mycodeschool 27 September 2013, share the link with friends and acquaintances, this video has already been watched 336,321 times on youtube and it was liked by 4.2 thousand viewers. Enjoy your viewing!