wisconsin
Chapter 16: Pointers and Arrays

Chapter 16: Pointers and Arrays

Content locked

The catalog is public. Reading this content requires approved access.

Sign in to read
Chapter 16: Pointers and Arrays
16
Pointers and Arrays
16.1 Introduction
16.2 Pointers
16.2.1 Declaring Pointer Variables
16.2.2 Pointer Operators
16.2.2.1 The Address Operator &
16.2.2.2 The Indirection Operator *
16.2.3 Passing a Reference Using Pointers
16.2.4 Null Pointers
16.2.5 Demystifying the Syntax
16.2.6 An Example Problem Involving Pointers
16.3 Arrays
16.3.1 Declaring and Using Arrays
16.3.2 Examples Using Arrays
16.3.3 Arrays as Parameters
16.3.4 Strings in C
16.3.4.1 Examples of Strings
16.3.5 The Relationship Between Arrays and Pointers in C
16.3.6 Problem Solving: Insertion Sort
16.3.7 Common Pitfalls with Arrays in C
16.3.8 Variable-Length Arrays
16.3.9 Multidimensional Arrays in C
16.4 Summary
Exercises
16.12 The following code reads a string from the keyboard and prints out a version with any uppercase characters converted to lowercase.
16.13 Consider the following declarations.
Source