Structured Programming and Structured Constructs

Structured programming is a methodology that attempts to minimize the complexity associated with designing, writing, and modifying individual algorithms, so it is focused on the very detailed level of programming.

The fundamental idea of structured programming is simple: Only use control constructs that have one entry and one exit point. In C#, those structured constructs are represented by while, do-while, for, if-else, and switch.

The basic ideas associated with structured programming were conceived during the 1960s and 1970s. Before the advent of this important methodology, the goto statement had been applied to implement much of the logic in a program. However, it soon became apparent that ...

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.