Changes

Jump to navigation Jump to search
Expanded Statements section
Line 129: Line 129:     
====Flow control====
 
====Flow control====
−
Flow control statements include loop constructs, goto statements, function calls, switch/case statements, and others.  goto is provided in most languages, but its use is almost universally frowned upon, since it makes program maintenance more difficult.
+
Flow control statements include loop constructs, goto statements, function calls, switch/case statements, conditional statements (if-then-else), exit statements, and others.  goto is provided in most languages, but its use is almost universally frowned upon, since it makes program maintenance more difficult.
    
====Assignment====
 
====Assignment====
Line 136: Line 136:  
====I/O====
 
====I/O====
 
I/O statements concern reading input from the user, or files, or devices, and writing output to them.
 
I/O statements concern reading input from the user, or files, or devices, and writing output to them.
 +
 +
====Declaration====
 +
Declaration statements allow the programmer to specify variable names, labels, array dimensions, and data types including structure layout and class definitions.
 +
 +
====Other====
 +
Some statements perform functions that do not fit under the above types.  These vary widely by language.  For instance, the [[BASIC programming language]] has the DATA statement which allows raw data to be included in the source.
    
===Operators===
 
===Operators===
SkipCaptcha
292

edits

Navigation menu