Assignment

Procedural programming is about ``state change''.

Assignment is the basic state-change operation.

Syntax: var = expression ;

E.g. i = 0; sets current value of i to zero.

If the value is not quite the right type, it may be converted.

Index