T
thomas
hi guys, I got a question about "pass by reference".
I want to know if I can pass a reference handler of a stack object to
a function as parameter?
----code---
void func(classtype &x);
classtype x;
func(x);
-----code---
Will this work? seems that the "x" object is in stack
Can "func" know where to find the "x" object?
I want to know if I can pass a reference handler of a stack object to
a function as parameter?
----code---
void func(classtype &x);
classtype x;
func(x);
-----code---
Will this work? seems that the "x" object is in stack
Can "func" know where to find the "x" object?