Chapter 10. Pointers
In This Chapter
• The Address-of Operator &
431
• Pointers and C-Type Strings 452
• Memory Management: new
and delete
458
Pointers are the hobgoblin of C++ (and C) programming; seldom has such a simple idea inspired so much perplexity for so many. But fear not. In this chapter we will try to demystify pointers and show practical uses for them in C++ programming.
What are pointers for? Here are some common uses:
• Accessing array elements
• Passing arguments ...
Get Object-Oriented Programming in C++, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.