Block (programming): Difference between revisions

Content deleted Content added
Dysprosia (talk | contribs)
un c++-ify, make it more general
Aecarol (talk | contribs)
Added mention that other languages use "begin" and "end" to denote blocks
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. Unlike paragraphs, statement blocks can be nested; that is, with one block inside another.
 
==A typical statement block==