Statement_block Statement_block

Statement block - Definition and Overview

Related Words: Accounting, Acquaintance, Address, Affidavit, Affirmation, Anacrusis, Announcement, Annual, Annunciation, Answer, Apostrophe, Articulation, Assertion, Assumption

In computer programming, a statement block is a section of code which is grouped together, much like a paragraph; such blocks consist of one, or more, statements. In C, C++, and some other languages, statement blocks are enclosed by braces {}. In Ada, Pascal, and some other languages, blocks are denoted by "begin" and "end" statements. In Python they are indicated by indentation. Unlike paragraphs, statement blocks can be nested; that is, with one block inside another.

A typical statement block

int main()
{
  return 0;
}

A nested statement block

int main()
{
  int x=1;
  if(x==1)
  {
     x++;
  }
  return 0;
}

Example Usage of Statement

PINewsWire: Tiger Woods releases a Statement and his alleged mistress denies their affair http://ping.fm/a7q1C
jfrycek: LLcoolJ= U hit the nail on the head with thoSE Statement TODAY ALSO ! Affirmative.....;) Amen!!
saints_talk: RT @benbrubaker: RT @blackandgold: New Orleans #Saints Did the Saints just make a Statement or what?>>> "Bring Em to the Dome"! ...
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.