8. Flow of Control Part I: Branching Statements and Related Concepts

   


Chapter 8. FLOW OF CONTROL PART I: BRANCHING STATEMENTS AND RELATED CONCEPTS

You will learn about the following in this chapter:

  • The main structures used to control the order in which the statements of a program are executed

  • The if-else statement

  • The comparison operators and how they allow programs to make meaningful decisions when combined with control structures like the if-else statement

  • How the nested and multibranch if-else statements can help you solve important computational problems

  • The logical operators and how they allow you to implement more powerful yet simpler programs

  • The infamous goto statement, why it should be avoided in most situations, and the few cases where it can be useful in C#

  • The switch statement

  • The scope and lifetime concepts and their implications

  • The conditional operator


   


C# Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 286
Authors: Stephen Prata

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net