4 ms·
When passing a pointer, if you want the resulting state of the variable, the function doesn't need to return a value. Also if the variable is a large object, t
by em3rgent0rdr 9y ago
When passing a pointer, if you want the resulting state of the variable, the function doesn't need to return a value. Also if the variable is a large object, then passing just a pointer to it saves time spent copying the object.
- Koshkin 9y agoI am sure parent meant "passing by reference". (In Oberon, for example, this is indicated by the VAR keyword.)