Unit 1 lesson 1.4 Flashcards
(5 cards)
Left-to-right associativity
The rule that operators with the same precedence are evaluated from left to right in an expression.
Magic number
A hard-coded number in a program that lacks context or explanation, making the code harder to understand and maintain.
Named constant
A variable with a value that is set once and cannot be changed; it is used to give meaningful names to fixed values.
Overhead
The extra processing time, memory, or other resources required by a computer program beyond the actual task it is performing.
Rules of precedence
The rules that define the sequence in which different operations (like addition and multiplication) are performed in an expression to ensure consistent results.