Jump to content

Block (programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lir (talk | contribs) at 16:55, 28 November 2003. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In computer programming, a statement block is a section of code which is grouped together; much like a paragraph. In C++, statement blocks are enclosed by {}:

int main()
{
  return 0;
}