Skip to Main Content
Sams Teach Yourself C# 5.0 in 24 Hours
book

Sams Teach Yourself C# 5.0 in 24 Hours

by Scott J. Dorman
November 2012
Intermediate to advanced content levelIntermediate to advanced
544 pages
12h 3m
English
Sams
Content preview from Sams Teach Yourself C# 5.0 in 24 Hours

Hour 8. Controlling Program Flow

What You’ll Learn in This Hour

Understanding the selection statements

Iteration statements

Jump statements

At its heart, C# is a procedural programming language, so statements are executed sequentially in the order they appear in the source code. This execution order is referred to as program flow. As you might imagine, following only a strict execution order would provide little flexibility. What is missing is a way to control or change what statements are executed based on the result of testing conditions. C# provides control flow statements that change the order of execution.

All the control flow statements have the same basic characteristics; they select any number of statements to be executed based ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself C#™ in 24 Hours

Sams Teach Yourself C#™ in 24 Hours

James Foxall, Wendy Haro-Chun

Publisher Resources

ISBN: 9780133256581Purchase book