Skip to main content
  • 11k Accesses

Abstract

Computation rests on two foundations: memory and control. Having developed a memory model in Chapter 1, this chapter extends the computational model with control statements. Such statements direct the flow of computation: the if/else construct enables conditional computation; and the while and for constructs facilitate iterative computation. Function calls, when combined with conditional statements, can yield even more complex control in the form of recursion.

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 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 69.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Aaron R. Bradley .

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Bradley, A.R. (2011). Control. In: Programming for Engineers. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-23303-6_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-23303-6_2

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-23302-9

  • Online ISBN: 978-3-642-23303-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics