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:

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.





  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License