Ch. 3.2: Mathematical Expressions Flashcards
What is an expression?
An expression is a programming statement that has a value. Usually, an expression consists of an operator and its operands.
What is precedence?
The order of when an operator is calculated. Multiplication and division have higher precedence than addition and subtraction.
What is associativity?
If two operators sharing an operand have the same precedence, they work according to their associativity.
What is a library function?
Think of a library function as a “routine” that performs a specific operation.
What is an argument?
Arguments are data being sent to the function. The pow function always raises the first argument to the power of the second argument.