Block (programming): Difference between revisions

Content deleted Content added
Undo vandalism of 67.101.160.128
No edit summary
Line 1:
In [[computer programming]], a '''statement block''' is a section of [[computer code|code]] which is grouped together, much like a [[paragraph]]; such blocks consist of one, or more, [[statement]]s. In [[C (programming language)|C]], [[C Plus Plus|C++]], and some other languages, statement blocks are enclosed by [[brace]]s <tt>{}</tt>. In [[Ada programming language|Ada]], [[Pascal programming language|Pascal]], and some other languages, blocks are denoted by "begin" and "end" statements. In [[Python programming language|Python]] they are indicated by indentation. Unlike paragraphs, statement blocks can be nested; that is, with one block inside another.
 
==A typical statement block==