![]() This problem is overcome by creating a code block or compound statement. Often, we will want to do more than one statement. Within many programming languages, there can be only one statement listed as the action part of a control structure: if (expression) ![]() Discussion The Need for a Compound Statement Blocks are fundamental to structured programming, where control structures are formed from blocks. A programming language that permits the creation of blocks, including blocks nested within other blocks, is called a block-structured programming language. Blocks consist of one or more declarations and statements. Kenneth Leroy Busbee and Dave Braunschweig OverviewĪ code block, sometimes referred to as a compound statement, is a lexical structure of source code which is grouped together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |