Operators Flashcards
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 (order of operations)
the rules that define the sequence in which different operations (like addition and multiplication) are performed in an expression to ensure consistent results