1/11/00
COM1100 Winter2000 Yuhong Yin Northeastern University
24
Assignment statement
nSyntax: variable = expression;
nEvaluate the RHS
nPut into LHS
nAssignment statement tells the computer to assign (store) a value into a variable.
nAssignment always have an equal ( = ) sign and one variable name immediately to the left of this sign. The value on the right of the equal sign is determined first and this value is assigned to the variable on the left of the equal sign.
n