Difference between revisions of "Statement"

From Computer History Wiki
Jump to: navigation, search
(Stubby, but covers the basics)
 
(No difference)

Latest revision as of 14:46, 12 May 2023

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.