3 Variables and Constants

Chapter 4
Introduction to Arrays
Even though C does not support string variables, you can make C think it supports string variables with character arrays. The concept of arrays might be new to you, but this chapter explains how easy they are to declare and use. After you declare these arrays, they can hold character strings just as if they were real string variables. Manipulating characters and words is one thing that separates your computer from a powerful calculator; this capability gives computers true data processing capabilities.
This chapter teaches you the following topics:
Character arrays
How character arrays and strings are alike and how they differ
Declaring character arrays as strings

 



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