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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights 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)