M4 Flashcards
enables your program to selectively execute other statements, based on some criteria
IF STATEMENT
performs a different set of statements if the expression is false.
else statement
is used to conditionally
perform statements based on an integer
expression.
switch statement
causes the program
flow to exit from the body of the switch
construct.
break statement
is comparable to
the else part of the if statement.
default keyword
The statements associated with this
keyword is executed if the value of the
switch variable does not match any of the
case constants.
default keyword
executes a given statement
or block of statements repeatedly as long as
the value of the expression is true.
while loop
facilitates evaluation of
condition or expression at the end of the
loop to ensure that the statements are
executed at least once .
do-while loop
executes a given statement or
a block of statements for a definite number
of times.
for loop
is for traversing items in a
collection.
foreach loop is for traversing items in a
collection.
is usually used in place
of a standard for statement.
foreach
causes the program
flow to exit prematurely from the body of the
loop statement.
break statement
causes the
program flow to skip over and jump to the
end of the loop body, and then return the
control to the loop control statement.
continue statement
identifies any valid statement to
which control must be transferred
label
is a structure that holds multiple
values of the same type.
array