Pointers in C/C++
Added to favorite list
Updated On 02 Feb, 19
Introduction to pointers in C/C++ - Working with pointers - Pointer types, pointer arithmetic, void pointers - Pointers to Pointers in C/C++ - Pointers as function arguments - call by reference - Pointers and arrays - Arrays as function arguments - Character arrays and pointers - Pointers and 2-D arrays - Pointers and multidimensional arrays - Pointers and dynamic memory - stack vs heap - Dynamic memory allocation in C - malloc calloc realloc free - Pointers as function returns in C/C++ - Function Pointers in C / C++ - Function pointers and callbacks - Memory leak in C/C++
4.1 ( 11 )
See complete series on pointers here httpwww.youtube.complaylist?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
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 httpen.wikipedia.orgwikiEvent_(computing)
For practice problems and more, visit httpwww.mycodeschool.com
Like us on Facebook httpswww.facebook.comMyCodeSchool
Follow us on twitter httpstwitter.commycodeschool
Sep 12, 2018
Excellent course helped me understand topic that i couldn't while attendinfg my college.
March 29, 2019
Great course. Thank you very much.