Assignment
As noted this is the =
operator. Be careful with the difference between assignment and equality:
The same variable can be assigned a different value during the program, the old value being lost when the new value is assigned. When the variable is declared it can be given a start value, an initialiser. Compound initialisation is permitted:
An assignment statement evaluates the right-hand size of the expression first producing a value, before assigning (copying) that value to the variable. If we try to read the value of the variable before it has been assigned the default value for that variable, according to its data type, will be returned (see table in Chapter 2).
Some more syntactic sugar is abbreviated assignment e.g.