References
A reference is a way of giving a(nother) name to an object
int x = 3;
int& y = x; // y is now another name for x
y = 42; // x is now 42
Reference types look (syntactically) like pointer types, except that they use & instead of *
Previous slide
Next slide
Back to first slide
View graphic version