10

CHAPTER

Pointers and Arrays

CHAPTEROUTLINE —•  10.1 Introduction
—•  10.2 Pointer Declaration
—•  10.3 Void Pointers
—•  10.4 Wild Pointers
—•  10.5 Pointer to Class
—•  10.6 Pointer to Object
—•  10.7 The this Pointer
—•  10.8 Pointer to Derived Classes and Base Classes
—•  10.9 Pointer to Members
—•10.10 Accessing Private Members with Pointers
—•10.11 Direct Access to Private Members
—•10.12 Address of Object and Void Pointers
—•10.13 Arrays
—•10.14 Characteristics of Arrays
—•10.15 Initialization of Arrays Using Functions
—•10.16 Arrays of Classes

10.1 INTRODUCTION

Most of the learners feel that pointer is a puzzling topic. However, pointers can make programs quicker, straightforward and memory efficient. ...

Get Object-Oriented Programming with ANSI and Turbo C++ 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.