Skip to main content

Arrays and Loops

  • Chapter
  • First Online:
Beginning C++
  • 12k Accesses

Abstract

An array enables you to work with several data items of the same type using a single name, the array name. The need for this occurs often - working with a series of temperatures or the ages of a group of people for example. A loop is another fundamental programming facility. It provides a mechanism for repeating one or more statements as many times as your application requires. Loops are essential in the majority of programs. Using a computer to calculate the company payroll, for example, would not be practicable without a loop. There are several kinds of loop, each with their own particular area of application. In this chapter, you'll learn:

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Ivor Horton

About this chapter

Cite this chapter

Horton, I. (2014). Arrays and Loops. In: Beginning C++. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0007-0_5

Download citation

Publish with us

Policies and ethics