Statement

From Computer History Wiki
Revision as of 15:46, 12 May 2023 by Jnc (talk | contribs) (Stubby, but covers the basics)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A statement is the basic constituent element of a program in a high-level programming language; in such languages, it is analogous to an instruction in object code.

Common statements include assignments; control flow, including conditionals ('if'), loops ('for'/'while'), and jumps; and subroutine calls.

In many languages, there is special syntax to mark the end of each statement; in several languages, including C, a ';' does so.