So far, I’ve covered all the fundamental data types and you’ve accumulated a basic knowledge of how to perform calculations and make decisions in a program. This chapter is about broadening the application of the basic programming techniques that you’ve learned so far, from using single data elements to working with whole collections of data items. You’ll also look at string handling. In this chapter, you’ll learn
  • What an array is and how you can use it

  • How to declare and initialize arrays of different types

  • What a null-terminated string is

  • How to use an array of type char to store a character string

  • How to declare and use multidimensional arrays

  • How to create and use arrays of type char as arrays of null-terminated strings

  • How to create variables of type string

  • What operations are available with objects of type string, and how you can use them

  • How you can work with strings containing wide characters


Array Element Index Position Empty String Type String String Word 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Ivor Horton 2004

Authors and Affiliations

  • Ivor Horton

There are no affiliations available

Personalised recommendations