143x Filetype PDF File size 0.30 MB Source: web.itu.edu.tr
1 Chapter 7 Pointers ©Copyright 2007 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 2 Chapter 7 - Pointers Outline 7.1 Introduction 7.2 Pointer Variable Definitions and Initialization 7.3 Pointer Operators 7.4 Calling Functions by Reference 7.5 Using the const Qualifier with Pointers 7.6 Bubble Sort Using Call by Reference 7.7 Pointer Expressions and Pointer Arithmetic 7.8 The Relationship between Pointers and Arrays 7.9 Arrays of Pointers 7.10 Pointers to Functions 3 Objectives • In this chapter, you will learn: – To be able to use pointers. – To be able to use pointers to pass arguments to functions using call by reference. – To understand the close relationships among pointers, arrays and strings. – To understand the use of pointers to functions. – To be able to define and use arrays of strings. 4 7.1 Introduction • Pointers – Powerful, but difficult to master – Simulate call-by-reference – Close relationship with arrays and strings – Mostly used in Data Structures – Mostly used for dynamic memory allocation
no reviews yet
Please Login to review.