Control structures are a primary concept in high-level programming languages. Essentially, it is a block is code. Control structures block in the code which dictates the flow of the program. In other words, a control structure is a container for a series of function calls, instructions and statements.
A simple example of a control structure is as followed: if "x" then "y" else "z". These statements will be included or excluded based on the condition of "x". This notion of "if then" makes up the majority of software applications.
The most common control structures are "gotos", "subroutines", "for loops", "do while loops", "if then" and "try catch finally". The names of these controls can change between languages but generally these concepts are universal across all imperative programming languages.
Programmers reading code need to be able to identify these control structures. Formatting them in a structured way allows them to be identifiable and distinct from each other. The coding standard constructs the control structures by combining a series of style rules; these rules center on indentation and line breaks throughout the code.© BrainMass Inc. brainmass.com January 27, 2023, 11:36 pm ad1c9bdddf