Statement (programming) - Your Art History Reference Guide!

ArtHistoryClub Information Site on Statement (programming) Art History Art History Search        Art History Browse welcome to our free resource site for all art history lovers!
Art History Search        Art History Browse             News        Gallery        Forums        Articles        Weblinks        welcome to our free resource site for all art history lovers!

Statement (programming)

A statement is the minimal unit of structuring in imperative programming languages.

The following are the major generic kinds of statements with examples in Pascal, a typical imperative language:

  • definition: TYPE SALARY = INTEGER
  • declaration: VAR A:INTEGER
  • assignment: A := A + 1
  • sequence: A := A + 1; WRITELN(A)
  • conditional: IF A > 3 THEN WRITELN(A) ELSE WRITELN("NOT YET") END
  • loop: FOR A:=1 TO 10 DO WRITELN(A) END
  • call: CLEARSCREEN()

Statements contrast with expressions in that the former do not return results and are executed solely for their side effects, while the latter always return a result and often do not have side effects at all.

In block-structured programming languages, statements are grouped into statement blocks.

Last updated: 05-10-2005 02:08:33
Last updated: 01-04-2007 01:18:57
The contents of this article are licensed from Wikipedia.org under the
GNU Free Documentation License. See original document.
Art History Search | Art History Browse | Contact | Legal info