M
Matthew Monopole
pass by value is:
declare with:
function(class a)
call with:
function(a)
and a is COPIED
pass by reference is
declare with:
function(class *a)
called with:
function(&a);
and a pointer of a is COPIED, but only one copy of a in memory
pass by (what's the third one???) is:
declare with:
function(class& a);
called with
function(a);
and a pointer is passed, only one copy in memory...
IS THIS CORRECT?
declare with:
function(class a)
call with:
function(a)
and a is COPIED
pass by reference is
declare with:
function(class *a)
called with:
function(&a);
and a pointer of a is COPIED, but only one copy of a in memory
pass by (what's the third one???) is:
declare with:
function(class& a);
called with
function(a);
and a pointer is passed, only one copy in memory...
IS THIS CORRECT?