Skip to Content
C++20 for Programmers: An Objects-Natural Approach, 3rd Edition
book

C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

by Paul Deitel, Harvey Deitel
April 2022
Intermediate to advanced
1012 pages
38h 1m
English
Pearson
Content preview from C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

7. (Downplaying) Pointers in Modern C++

Objectives

In this chapter, you’ll:

  • Learn what pointers are, and how to declare and initialize them.

  • Use the address (&) and indirection (*) pointer operators.

  • Compare the capabilities of pointers and references.

  • Use pointers to pass arguments to functions by reference.

  • Use pointer-based arrays and strings mostly in legacy code.

  • Use const with pointers and the data they point to.

  • Use operator sizeof to determine the number of bytes that store a value of a particular type.

  • Understand pointer expressions and pointer arithmetic that you’ll see in legacy code.

  • Use C++11’s nullptr to represent pointers to nothing.

  • Use C++11’s begin and end library functions with pointer-based arrays.

  • Learn various C++ Core ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing Data-Intensive Applications, 2nd Edition

Designing Data-Intensive Applications, 2nd Edition

Martin Kleppmann, Chris Riccomini

Publisher Resources

ISBN: 9780136905776