Computer Science / CS 0367 · Atom · ~20 seconds
The Expression
Video not yet published
to the StudyWalks catalog
to the StudyWalks catalog
State
An expression is a language construct that evaluates values, built from operators — unary taking one operand, binary two, ternary three — under precedence rules dictating order of operations.
Show
One line computing a discounted price is operators and operands negotiating by rank.
Watch for
Precedence differs at the edges across languages; check the exceptions.