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 and dynamic memory in CC++ here
In this lesson, we have explained the concept of memory leak in CC++. This is a good interview question also. Memory leak happens due to improper use of dynamic memory in a program when we get some memory using malloc and do not free it, when its not being used.
Feel free to drop your comments, feedback and suggestions.
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.