甲班
Program
A program is list of instructions written in a programming language that is used to control the behavior of a machine, often a computer.
Function (subroutine)
A portion of code within a larger program, which performs a specific task and is relatively independent of the remaining code.
Assignment
An assignment statement sets or re-sets the value stored in the storage location(s) denoted by a variable nameAn assignment operation modifies the current state of the executing program. Consequently, assignment is dependent on the concept of variables. In an assignment:The expression is evaluated in the current state of the program. The variable is assigned the computed value, replacing the prior value of that variable.
乙班
Statement block
A pair of braces containing zero or more statements.
Expression
An expression in a programming language is a combination of values, variables, operators, and functions that are interpreted (evaluated) according to the particular rules of precedence and of association for a particular programming language, which computes and then produces (returns, in a stateful environment) another value.
Precedence
Order of operationIn an expression with multiple operators, operators with higher precedence execute before operators of lower precedence.
沒有留言:
張貼留言