Skip to Content
C++ How to Program, Sixth Edition
book

C++ How to Program, Sixth Edition

by P. J. Deitel - Deitel & Associates, Inc., H. M. Deitel - Deitel & Associates, Inc.
July 2007
Beginner to intermediate
1504 pages
44h 24m
English
Pearson
Content preview from C++ How to Program, Sixth Edition

Chapter 8. Pointers and Pointer-Based Strings

 

Addresses are given to us to conceal our whereabouts.

 
 --Saki (H. H. Munro)
 

By indirection find direction out.

 
 --William Shakespeare
 

Many things, having full reference

To one consent, may work contrariously.

 
 --William Shakespeare
 

You will find it a very good practice always to verify your references, sir!

 
 --Dr. Routh

OBJECTIVES

In this chapter you’ll learn:

  • What pointers are.

  • The similarities and differences between pointers and references, and when to use each.

  • To use pointers to pass arguments to functions by reference.

  • To use pointer-based C-style strings.

  • The close relationships among pointers, arrays and C-style strings.

  • To use pointers to functions.

  • To declare and use arrays of C-style strings.

Outline ...

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

C++ How to Program, 10/e

C++ How to Program, 10/e

Paul Deitel, Harvey Deitel
C++ How to Program, Ninth Edition

C++ How to Program, Ninth Edition

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9780136085669Purchase book