The Assignment Operator

From Catglobe Wiki
Revision as of 10:48, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



The Assignment Operator

The assignment operator is the single equal sign, =. The assignment operator works in CGS much as in any other computer languages. It has this general form:

var = expression;

Here, var must have exactly the same type as expression.