Ch5: Pointers & C‑style Arrays

Overview

This chapter introduces three closely related ideas in C++: pointers, C‑style arrays, and C‑style strings. These appear frequently in existing C and C++ code, libraries, and examples.

Earlier chapters focused on safer containers such as ::fast_io::vector, ::fast_io::string, and ::fast_io::array. In this chapter, you will learn:

A major goal is to show how pointers fit naturally into the container model you already know from Chapter 4.

Contents