company logo

reference variable

A reference variable is a variable, which shares its value with other (reference) variables. A reference variable does not have its own data area, i.e. when a reference variable is destructed the variable value still exists.

// OSI</p>

string a;

string &b &= a;

string &c &= b;

// a,b and c do have the same value. Changes in a become visible in b and c

Generalisations:  variable