Current area: HOME -> C / C++ -> Pointers Articles
Pointers
A Beginner's Guide to Pointers
I really believe all the beginners should read this article. It explains with a lot of details what pointers are and what can they be used for. It covers stuff like: dynamic allocation, pointers to classes, pointers to arrays, etc. A must read!
Introduction to C and C++ function pointers
Introduction to the usage of function pointers in C and
C++. You'll find syntax and code examples in both C and
C++ of how to define, assign an address or call a
function using a function pointer. Also covered are
arrays of function pointers, callbacks and functors.
Pointer Usage in C++: Beginner to Advanced
The article covers pointer concepts and syntax in C++ in-depth. It uses a graded approach to increase difficulty level, with lots of illustrations and examples for beginners. It is also useful for advanced users to test knowledge of topics like "Dynamic Memory Allocation of Multi-dimensional Pointers" and "Deciphering of Lengthy Function Pointer Declarations."
What's Your Address
In this article we'll look at some of the problems that doing this can cause. Our solution will be an unexciting one, simply the recommendation that you follow Peter's implicit advice, and forswear any use of this overload for shortsighted gains and avoid much grief down the line.
What`s the Address? Pointers
A pointer simply points to another variable or constant. Though they have a reputation for being difficult to learn, they really are not that hard. This is fortunate, becuase pointers are very important to programming. This article explains how to create and work with pointers in C++.