Objectives
In this chapter you’ll:
• Learn what pointers are.
• Learn the similarities and differences between pointers and references.
• Use pointers to pass arguments to functions by reference.
• Understand the close relationships between pointers and built-in arrays.
• Use pointer-based strings.
• Use built-in arrays.
• Use C++11 capabilities, including nullptr
and Standard Library functions begin
and end
.
8.2 Pointer Variable Declarations and Initialization
8.4 Pass-by-Reference with Pointers
8.6.1 Nonconstant Pointer to Nonconstant Data
8.6.2 Nonconstant Pointer to Constant Data
8.6.3 Constant Pointer to Nonconstant Data
8.6.4 Constant Pointer to Constant Data
8.8 Pointer Expressions and Pointer Arithmetic
8.9 Relationship Between Pointers and Built-In Arrays