O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required