Chapter 22. Memory Access
Arrays and pointers are low-level building blocks of C programs that provide fast access to hardware memory. This chapter discusses the different ways to organize and access memory.
Pointer Pathology | ||
Further Pointer Pathology with Heap Memory | ||
Memory Access Summary | ||
Introduction to Arrays | ||
Pointer Arithmetic | ||
Arrays, Functions, and Return Values | ||
Different Kinds of Arrays | ||
Valid Pointer Operations | ||
What Happens If new Fails? | ||
Chapter Summary |
Direct manipulation of memory entails some serious risks and requires good practices and thorough testing to avoid serious errors. Improper use of pointers and dynamic memory can cause program crashes that result from heap corruption ...
Get An Introduction to Design Patterns in C++ with Qt 4 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.