x
Menu

Pointers in C/C++

Other,

Updated On 02 Feb, 19

Overview

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++

Includes

Lecture 16: Function pointers and callbacks

4.1 ( 11 )


Lecture Details

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
httpwww.youtube.comwatch?v=Jdtq5uKz-w4&list=PL2_aWCzGMAwKedT2KfDMB9YA5DgASZb3U&index=3

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

Ratings

0


0 Ratings
55%
30%
10%
3%
2%
Comments
comment person image

Sam

Excellent course helped me understand topic that i couldn't while attendinfg my college.

Reply
comment person image

Dembe

Great course. Thank you very much.

Reply
Send