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.

 

<< PreviousWord BrowserNext >>
ulva island, new zealand
laura ingraham
gymnastics at the 1908 summer olympics
tom halk
creativity techniques
south mimms
bourne
hauraki gulf
end of line
coromandel peninsula
reginald denny
semitic pagan deities
signal (computing)
solomon ibn gabirol
the holiday plan
joe barton
velma barfield
leuciscus
topi
everson v. board of education
antineutron
vctor cervera pacheco
dulce mara sauri riancho
an inequality on location and scale parameters
druid
marlon devonish
vertical deflection
multi task learning
tomi ungerer
john joyce
jewish museum (bucharest)
george h. v. bulyea
national museum of art of romania
petite bourgeoisie
u.s. congressional delegations from south carolina
the last outpost
kingdom of mysore
suta dumping
visualboyadvance
curtain
expression (programming)
l'empire des futures stars
mark hughes
contra (disambiguation)