Data Type - Reference Type

About

A reference type is a lightweighted pointer where there’s not much that can be done with them except pass them around.

When a reference is passed to a function, the function receives a copy of the reference, so any changes the called function makes to the underlying data structure will be visible through the function caller too.


Powered by ComboStrap