FIT 100
© Copyright University of
Washington 1999-2000
Fundamental Rule of Assignment
vFundamental rule of
assignment
oThe
expression is evaluated before the assignment is made
oscore =
score + 3
oshotClock
= shotClock - 1
Computing is NOT algebra: Though = is used in assignment statements, it means
“becomes” whereas in algebra it means equality. So, score = score + 3 is essential to
computing, but
meaningless in algebra