20 Pointer Storage

Chapter 21
Using Pointers
Arrays and pointers are closely related in the C programming language. You can address arrays as if they were pointers and address pointers as if they were arrays. Being able to store and access pointers and arrays gives you the ability to store strings of data in array elements. Without pointers, you could not store strings of data in arrays because there is no fundamental string data type in C (no string variables, only string constants).
This chapter teaches you the following topics:
Array names and pointers
Character pointers
Pointer arithmetic
Ragged-edge arrays of string data

 



C by Example
C by Example
ISBN: 0789722399
EAN: 2147483647
Year: 1999
Pages: 43
Authors: Greg Perry

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net