Chapter 4 Flashcards
abstraction
hide details that we don’t need to use behind a convenient and general interface
computation
act of producing some outputs based on some inputs
declaration
tells the compiler about a function’s name, return type, and parameters
definition
provides the actual body of the function
expression
computes a value from a number of operands
for - statment
iteration over a sequence of values
function
named sequence of statements
increment
an operator that adds 1 to the operand
lvalue
value that can appear on the left-hand side of an assignment
statement
a bloke of code does something; stamens are terminated by a semicolon
if - statement
if condition is true then 1st statement is executed; otherwise the 2nd statement is
switch-statement
a selection based on comparison of a value against several constants
iteration
The statements that cause a set of statements to be executed repeatedly on a sequence of elements
while-statement
allows to repeatedly run the same block of code until a condition is met
loop
repeat some statement