Abstract
In this chapter we will be concerned with pointers, arrays and strings. If you have done any programming before beginning to study C, you will have already encountered and used arrays and strings. If you have arrived here via assembly language programming, you will already be familiar with the concept of pointers. If you have come to C by a different route and are uncertain about pointers then now’s your chance to find out! Pointers are one of the most important features of C and as such contribute to the flexibility and power for which the language is known. The concept of pointers is crucial to a clear understanding of the way arrays work, and strings are simply arrays of type char. It is for this reason that we have not so far concerned ourselves very much with strings. However, by the time you have worked through this chapter, you should be proficient in the basic uses of pointers, be able to use one-and two-dimensional arrays and be at home with strings.
“To me the most important part of a program is laying out the data structure.”
Dan Bricklin
Preview
Unable to display preview. Download preview PDF.
Copyright information
© 1991 W. Arthur Chapman
About this chapter
Cite this chapter
Chapman, W.A. (1991). Pointers, arrays and strings. In: Mastering C Programming. Palgrave Master Series. Palgrave, London. https://doi.org/10.1007/978-1-349-11015-5_8
Download citation
DOI: https://doi.org/10.1007/978-1-349-11015-5_8
Publisher Name: Palgrave, London
Print ISBN: 978-0-333-49842-2
Online ISBN: 978-1-349-11015-5
eBook Packages: EngineeringEngineering (R0)