| Assignment statement | a8 | ||||||||||||||||||||||||||
| Gives a value to a variable | |||||||||||||||||||||||||||
| Syntax | |||||||||||||||||||||||||||
| <variable name> = <value>; | |||||||||||||||||||||||||||
| Semantics | |||||||||||||||||||||||||||
| Calculate right side, store in variable on left | |||||||||||||||||||||||||||
| Variable must be already declared | |||||||||||||||||||||||||||
| Right side | |||||||||||||||||||||||||||
| number | |||||||||||||||||||||||||||
| variable | |||||||||||||||||||||||||||
| expression | |||||||||||||||||||||||||||
| Variable can hold only 1 value at a time | |||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||